1. Download Tomcat plugin
Download Address: The Http://www.eclipsetotale.com/tomcatPlugin.html,tomcat plugin version is best to correspond to the Eclipse version, or there will be an issue that cannot be installed.
2, install the plug-in
Unzip the downloaded package into the plugins directory of the Eclipse directory
Restart Eclipse, the Tomcat icon appears in the toolbar above the Eclipse interface
The first icon is: Start
The second icon is: stop
The third icon is: Restart 3, configure Tomcat
Click on the menu bar above eclipse: Window, Preferences
Set the Tomcat root in the Tomcat home and set the Tomcat-initiated JVM parameters in the JVM settings
4. Deployment Project
Selected items, right-click Properties, as shown below
Modify only 3 red box places
"is a tomcat project": Use this project as one of the Tomcat projects
"Context name": The root path of the access address
"Subdirectory to set as Web application root": Web project root directory, if WebRoot write "/webroot", if WebContent write "/webcontent"
Click OK
Re-select project, right-click Tomcat Project--Update context definition to generate a testpro.xml file in the Tomcat directory, Conf/catalina/localhost directory
Open Testpro.xml, delete the value of Workdir
Finally click the Tomcat Launcher icon on the toolbar to start the Success 5, delete the deployed project
Selected items, right-click the Tomcat project, remove context definition, delete the Testpro.xml file under the Conf\catalina\localhost directory of the Tomcat directory