1:项目根目录下.project文件中:
<projectDescription>
<name>SpringMVC-Annotation</name>//修改
<comment></comment>
<projects>
</projects>
2:项目根录下.settings\org.eclipse.wst.common.component文件中
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="SpringMVC">//修改
<wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
<property name="java-output-path" value="/SpringMVC/build/classes"/>//修改
<property name="context-root" value="SpringMVC-Annotation"/>
</wb-module>
</project-modules>
3:ecplise中 项目右键属性 --> Web Project Settings --> Context root//修改
4: ecplise中 pom.xml文件中
<finalName>hall</finalName>//修改
<artifactId>hall</artifactId>//修改
<name>hall</name>//修改