The first method:
Open the directory where the project is located, locate a. mymetadata file, open it with Notepad, and so on, roughly as follows:
<?xml version= "1.0" encoding= "UTF-8"?>
<project-module
Type= "WEB"
Name= "Qingniaocang"
Id= "myeclipse.1311043386109"
context-root= "/qingniaocang"
J2ee-spec= "5.0"
Archive= "Qingniaocang.war" >
<attributes>
<attribute name= "Webrootdir" value= "WebRoot"/>
</attributes>
</project-module>
context-root= "/qingniaocang" for the post-publication directory name, instead of context-root= "/qingniaocang", the first to use MyEclipse to shut down the project, and then reload.
The second method:
Right-click on your project and select Properties----> and then click on the Myeclipse-web option, modify the Web context-root name to match the name of the project you want to modify and the names you renamed earlier.
The filename and project name are not the same in WebApps on the Tomcat server, modify the method