MyEclipse + Tomcat deployment and release of webapp and myeclipsewebapp
1. Integrate Tomcat server in MyEclipse
My MyEclipse uses 10.0 and Tomcat uses 7.0.027. To publish a web application compiled using MyEclipse, you need to set some settings in MyEclipse.
1. Set the JDK version.
Set windows -- preferences as follows:
You can use the default JDK version here, or click Add to select JDK as the directory.
2. Set Server
Here I am using Tomcat 7, so the setting is as above.
2. Compile a WebApp
Right-click on the left and select new:
Then enter some content in the index page for testing.
3. Deployment
Click deploy next to the server and select the project to be released:
Iv. Overview of the Web project directory structure
In the root directory, you can see the index. jsp page and WEB-INF, the structure is the same as the directory structure of the project corresponding to the webapps directory under the Tomcat installation directory.