First, add Tomcat to eclipse and increase the number of projects deployed on it
1. Open Eclipse and select "Window" in the menu---> "Show View"---> "Others", enter "Server" in the popup window and select servers, click "OK" (as shown).
2, put the mouse in the Servers box, right-click "New"---> "Server";
3. After modifying the server name, click "Next";
4. Configure the path of Tomcat and the locally installed JDK, then click "Next";
5. Increase the number of projects that need to be deployed to Tomcat (e.g.) and finally click "Finish".
Second, the configuration of Tomcat in eclipse
1. Configure the time limit for Tomcat to start and close. If not started within the specified time will be an error.
2, the project name after the distribution of the project. In general, the official URL configuration is empty, so this is configured as NULL. Configurations such as:
Delete the name in path, leaving only "/" to indicate the root path in Tomcat, remove the tick below and set the project to automatically load tomcat after the change is saved.
3. Press "Control + S" to save the above changes.
Note: When configuring multiple Tomcat, the 3 port numbers cannot be configured the same.
Multiple tomcat additions in eclipse