Eclipse official website Download: http://www.eclipse.org/downloads/
Tomcat Download: http://tomcat.apache.org/
After the eclipse compression package is unpacked, Tomcat needs to configure the environment variable
Configuring the Tomcat environment variable
On the desktop: Computer Right-click Properties--in advanced environment settings--environment variables--New in system variables--
Variable name: catalina_home, Variable Value fill: The location of your Tomcat decompression (mine is E:\javaProject\apache-tomcat-8.5.20)
Double-click the Startup.bat file in the bin directory to open the Tomcat server, enter http://localhost:8080/or http://127.0.0.1:8080/in the address bar You can access it, display the Apache home page, close the server in the Bin directory by double-clicking Shutdown.bat.
Eclipse Configuration Tomcat
Open Eclipse, click windows-->preferences-->java-->installed JREs Select your JDK installation directory
Next Configure Tomcat
Select Server
Choose Tomcat location and JDK version
Finally, create a new dynamic WEB project test
New. JSP in WebContent
Right-click the project and select Run as----run on Server
And then you can access it.
If you want to deploy another project, you can right-click the server and add
Click on the item and add it in the past.
Eclipse Configuration Tomcat