Project names in Eclipse are modified after deployment to tomcat the app name is still old

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.