See how to modify the Java Web project name

When creating a new Web project, if the project is written, but the name is wrong, change the name at this time. If you rename directly, after deploying Tomcat, enter the path of the new project name in the browser, and report 404. There are two solutions for file errors:


The first method:
Open the directory where the project is located, find a .mymetadata file, and open it with Notepad, etc.

Modify
context-root = "/ JavaEEMy04- Demo"
and then under Tomcat / webapps path of the original project name change came
after the first use myeclipse this project off and then reloaded to
the second method :( recommended)
Right-click on your project, then select properties—-> then click on the myeclipse-web option, modify the web context-root name to be the same as the name of the project you want to modify and the name previously renamed.
Write picture description here

Guess you like

Origin blog.csdn.net/babyhuang/article/details/70127002