1. In eclipse, select Window--->preferences--->server--->runtime environments, select the Add button
2. In the popup dialog box, select the version of the TOMCAT server and click Next
3, in the Pop-up dialog box, select the Tomcat local path, the JRE version, etc., click Finish, and finally click OK
4, create Servers, if cannot find Servers, then select Window--->show View--->others, and then enter Servers in the pop-up dialog box, click OK to see
5, in the Pop-up dialog box, do not change what, direct, next, and then Finish can
6, double-click the built services, open the following interface:
Note: If you have a project in your server, it must be clear that the project can be opened for modification
7, in the Open interface to make the following modifications, and then save
8, the server has been deployed to complete, then the next is to deploy the project to the server, start the server can
Right-click the project name, select Run as--->run on Server, then tap Finish to run the project
Note: The 7th step must be operational, and then the server can start normally, but access to the project will be reported 404 error. This is because eclipse redirects the Tomcat Project publishing directory (WebApp in the Tomcat directory), so you will find that your project file cannot be found in the WebApp directory under the Tomcat installation directory
Deploy a Web project to a Tomcat server in eclipse