Solve the Tomcat startup display HTTP Status 404 - Not Found inaccessible index.jsp

Web project to solve the Tomcat server: error

The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

Adjust a lot of configuration parameters, and even the configuration is not effective in web.xml

 <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
 </welcome-file-list>

And finally found the original project path configured wrong.

Modification steps:
IDEA Tomcat environment as an example:

Edit Server Configuration

Modify the Startup Path Project

 

Restart, index.jsp successfully loaded by default. 

Published 33 original articles · won praise 1 · views 4168

Guess you like

Origin blog.csdn.net/qq_39827677/article/details/103722519