https://blog.csdn.net/suxing_ing/article/details/79983104
1、修改 POM (3个地方)
//开头
<groupId>AAA</groupId>
<artifactId>Newname</artifactId>
<name>Newname</name>
//结尾
<build>
<finalName>Newname</finalName>
</build>
2、修改 .project (1个地方)
<name>Newname</name>
3、修改 .settings\org.eclipse.wst.common.component (3个地方)
<wb-module deploy-name="Newname">
<property name="java-output-path" value="/Newname/target/classes"/>
<property name="context-root" value="Newname"/>
</wb-module>
4、修改 web.xml
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>Newname</param-value>
</context-param>