After the project is copied, the project name is changed, but the address bar displayed when running tomcat is still the original.
I tried the following methods:
1,
Right-click your project, select "properties", enter "web" in "type filter text", enter the new project name, remember not to put "/ "Get rid of it. Restart myEclipse
2,
Find the location of your project in the workspace in myEclipse. If you can't find it, you can right-click your project and select "myEclipse"->"Open in Explorer". What you see is yours. The location of the project, open the .mymetadata file, and modify the value of the context-root attribute of the "project-module" tag.
3,
Open the ".setting" folder and find "org.eclipse.wst.common.component". Modify the value of "wb-module deploy-name" to the name of your project. If it matches your bottom The value of property name="context-root" is also your name. Generally, this has been changed when the name is changed. Just restart eclipse
However, after trying these methods, it still doesn’t work. Is it because my machine is difficult to fix, or is there another problem.
.Has the project been changed?
The first method is tried and true. .
Remember to delete the previous deployment information after changing the project name, and then compile and redeploy