Before using MyEclipse to develop the Web application, you can configure the server in the MyEclipse, after configuration, directly run the server, it is convenient.
Recently switched to the Eclipse development environment and found that using Tomcat is not the same way, so make a note here.
There are two main modes of running a web app with Tomcat in Eclipse:
1. Default mode:
Right-click on the standard Web system and select run on Server
Choose the tomcat server, how not, you can click Add New server.
Just click on the [Finish] button to run your Web app properly.
2. Improved scenario: Deploy the app to the WebApp directory in Tomcat.
1. First in the above configured server in all the application of the deletion, directly click on the application to delete the right button.
2. Select the server and select the [Clean] button in the right-click menu.
3. Double-click Server
4. Modify the configuration:
A. Change the server Locations to use Tomcat installation.
B. Change the deploy path to the WebApps directory.
After modification, as shown in:
5. Save the changes.
Re-add the app to the server, restart Tomcat, and discover that the project has been deployed to WebApps.
Ps:
Why use an improvement scenario, the default way is to deploy a set of applications within the workspace. Adding the need to modify the Tomcat configuration, check the output log and other operations, inconvenient.
Sdjnzqr
Source: http://www.cnblogs.com/sdjnzqr/
Copyright: This article is owned by the author and the blog Park
Reprint: Welcome reprint, but without the consent of the author, this paragraph must be retained; The original link must be given in the article; otherwise, legal liability