The first method: in the Conf directory in Tomcat, in Server.xml, add: </context> the second method: Copy the Web project file directly to the WebApps directory. The third method: in the Conf directory, the new Catalina (note case) \localhost directory, in this directory to create a new, the name can be arbitrary, as long as and the current file name is not repeated on the line, the content is: </context> fourth type, The workaround to modify the name of the project under Eclipse causes the inconsistent publication name in Tomcat: (the fourth method I used, the perfect solution) 1. Open the File "project directory \.settings\org.eclipse.wst.common.component" to see the content, Replace all the strings in the original project name with the new project names; 2. Restart eclipse; The web name displayed in 3.tomcat is OK.
This article is from the "http://82711020.blog.51cto.com/12993840/1961161" blog, please be sure to keep this source.
How to modify the name of the project file generated by the project under the Eclipse Tomcat