Deploy a Web project in Eclipse to run on the Tomcat server.
When using Eclipse to develop a Web project, you can run the Web project through the Tomcat server. In this case, the Web project is deployed in [WorkSpace] \. metadata \. plugins \ org. eclipse. wst. server. in core \ tmp0 \ wtpwebapps. However, after Eclipse is disabled, the Web project cannot run, which is inconvenient. If you can deploy the Web Project to the Tomcat server and run the Web Project in Eclipse without running Eclipse, It is very convenient.
1. Stop running the Tomcat server and Remove all projects under the Tomcat server;
2. Double-click the Tomcat Server to go to the settings page. In Server Locations, select Use Tomcat Installation (takes control of Tomcat installation), enter webapps in Deploy path, and save and exit;
3. add a Web project to the Tomcat server, start it once, close it, and then exit Eclipse. start the Apache Tomcat 7 service in msc. It can be seen that the Web project in Eclipse is already running.