Home >Common Problem >How to configure tomcat in eclipse
How to configure tomcat with eclipse:
1. Open Eclipse, click the "Window" menu, and select "Preferences".
#2. Click the "Server" option and select "Runtime Environments".
#3. "Add" to add Tomcat.
#4. "Next", select the Tomcat path you installed.
#5. "Finish" is completed.
6. Let the Tomcat server be displayed on the console and deploy the web application to Tomcat
Window → Show View → Servers
7. Click No servers are available. Click ths link to create a new server. and select the Tomcat version in the pop-up dialog box
8. "Next", add our project
9. Select the project and click Add, or double-click to add it to the right
" Finish"
Return to the "Servers" panel below, right-click the "Tomcat v8.0 Server at localhost" node in the panel, and click on the pop-up shortcut menu Click "Start" to start the specified web server. If you directly start accessing http://localhost:8080/TomcatTest at this time, you will find that a 404 error will be reported. This is because we have not added the home page, so add the content of the home page (index.jsp) below.
The above is the detailed content of How to configure tomcat in eclipse. For more information, please follow other related articles on the PHP Chinese website!