新しく作ったMapオブジェクトである map に対して、コピーするMapである copyMapA の内容が全てコピー
Map<String, Integer> copyMapB = new HashMap<String, Integer>();
Map<String, Integer> map = new HashMap<String, Integer>();
map.putAll(copyMapA);
$ sudo nano /opt/apache-tomcat9/conf/server.xml Find the below content in the configuration file line 69 nearly <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> Replace port 8080 with your required port. For example, we are changing the default tomcat port to 8081. <Connector port="8081" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />