Tomcat startup report 404 solution ideas

After the web project is deployed, enter https://localhost:8080/ in the network address bar, the Tomcat display page cannot be displayed (404 error is reported)

There are two reasons: 1. The port number may be incorrectly configured. 2. The webapp directory is loaded incorrectly (the default path is webapp)
Modify the port number: find the server.xml file in the Tomcat directory, find the first Connector, and modify the port number: 8080


Modify the Deploy path ( Note, first make sure that the Tomcat server is not added to any project (remove all projects ))
Start the Tomcat server first. After startup, double-click the server to enter the following interface:




choose Deploy path is the webapps under the corresponding path of the server you deployed, and then save it.
If the server is not started to enter the interface, it is not allowed to modify the Deploy path:

Restart the server, enter localhost:8080/, the following interface is displayed, success!


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324847891&siteId=291194637