1, open eclipse,window->preferences->server->runtime environments, add the appropriate Tomcat server on the right
2, the following figure, select the response of the server, right key->open
Next, you will see the following figure, modifying the two items in server location, notice whether server path is consistent with the actual Tomcat path, and then save
3. Configure reference lib output to the corresponding Web application in tomcat
Select the item, right-click->properties, find Deployment Assembly, then store the Add button on the right, add Java build Path Entries, then OK, finally click OK to complete Setup
4, finally write and change the corresponding project under the. classpath file, the following figure to move the callout section to the front, so that each release will overwrite the previous file
By this time, the Web project that eclipse developed will be deployed to Tomcat, and you will not be able to open eclipse, start Tomcat directly, and enter the URL in the browser to access the project.