1. First of all, you must download the Java version of Eclipse, and then go to Apache Tomcat's official website to the next Tomcat. Unzip to the directory you want to put.
Runtime environments, Server, Preferences, 2.Eclipse
3. Add a server to the right border and select the tomcat you unzipped
4.Eclipse, Window----Show View, other->servers adds control of the server to the Eclipse interface
5. Double-click on the added server, select Use Tomcat Local under Server location (if Gray is not available here, right-click on the server to remove all items and then tap Clean)
6. At this time your project directory will appear in a server folder, double-click the following tomcat-users.xml, the following user configuration paste in
<role rolename="Tomcat"/>
<role rolename="Role1"/>
<role rolename= "Manager"/>
<role rolename="admin"/>
<role rolename= "Admin-gui"/>
<role rolename= "Admin-script"/>
<role rolename= "Manager-gui"/>
<role rolename= "Manager-script"/>
<role rolename= "manager-jmx"/>
<role rolename= "Manager-status"/>
<user Password= "Admin" roles= "admin,manager,role1,tomcat,admin-gui,admin- Script,manager-gui,manager-script,manager-jmx,manager-status " username=" admin "/>
The above configuration is sufficient.
Eclipse built-in Tomcat configuration