Task Description: Copy Project Spring_user and rename to Spring_user_test
First, by pressing F2 and the following way can modify the name of the target item in workspace
Click the Project Right button to select Properties, enter the keyword Web, enter the target name in context root: spring_user_test
Second, the key step--through the above method of modification, run the project, you will find the address bar is still the old project name, you need to change by the following settings
1. Find org.eclipse.wst.common.component in the workspace of the project
2. Open with Notepad or Notepad, and change the value of the following three items to the target name: spring_user_test
3. If the destination is not reached after the previous step is completed, open the project's workspace, tomcat in the servers directory. Config directory, locate Server.xml (a), open with Notepad, find the code shown in B, and modify the Docbase,path project name to target: Spring_user_test. --At this point, the revision is complete, but please be patient and read the next "special instructions", because if you run the project directly at this time ten will have "eggs."
A figure
b Figure
"Egg":
When you republish the project, you will notice that the following error occurred when you were unable to publish the item:
Could not load the Tomcat server configuration At/servers/tomcat v7.0 Server at Localhost-config. The configuration may be corrupt or incomplete. |
Special Note:
For the "egg" you encounter, the solution is simple, that is, delete the current servers
Refresh the current project and publish it.
Fix Eclipse "Copy project renamed after republishing, project name is still original project name in Address bar" issue