Project development is done using eclipse, and sometimes you need to modify the name of the project, but you can still access it using the old project name when deployed to Tomcat in Eclipse.
For example, the name of the original project is test, now I have changed to Pc-shop-web in Eclipse, but path is still test, this time can only be accessed through http://localhost:8080/test.
Yes, it can be modified by the "Edit" button, but it's really annoying to have to modify every time you delete a deployment. So is there any way to change it completely? It's really simple, and eclipse must have saved it in a file. By looking at the last discovery of this file in the. Settings directory of the project you are deploying, the name is called: Org.eclipse.wst.common.component. For example we are here in Pc-shop-web (formerly Test)/.settings/this directory. The file is in XML format. One of them: <property name= "Context-root" value= "xxxx"/> my value here is: Test, change to your latest project name.
Note: You will need to refresh the next project in Eclipse's Project Explorer after the modification is complete.
Project names in Eclipse are modified after deployment to tomcat the app name is still old