1: Modify the project directory under:. project file
<projectDescription>
<name>SpringMVC-Annotation</name>
<comment></comment>
<projects>
</projects>
2: Project Right-click Properties-WEB Project Settings---Context root
3: Modify the project directory under:. 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>
Modify the marked Red section.
What you need to modify after Eclipse modifies the project name