Eclipse's web-to-Tomcat default deployment directory is under Project space, and this article is intended to change the deployment directory to the Tomcat installation directory and resolve the dependent package output issues.
1. Add the tomcat server in Eclipse.
2. Publish the Web project to Tomcat:
Select the tomcat you just added:
At this point eclipse will automatically generate the servers project:
3. In the servers view, remove deletes the item just released:
4. Open the Tomcat server configuration entry:
5. Modify the following two configuration items, Tomcat remains in the boot state, otherwise the server locations column is dimmed and unavailable:
6. Configure the LIB output.
Project Right-click:
Click Next and select the package that you want to publish to Tomcat with your project to complete the confirmation operation.
7. Modify the. classpath file under the project to bring the following configuration items to the front, otherwise the files previously published to Web-inf will be overwritten when the project is published:
8. Re-publish the project.