解决Tomcat启动显示 HTTP Status 404 – Not Found 无法访问index.jsp

Web项目解决Tomcat服务器:报错

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

调整了很多配置参数, 甚至在web.xml中配置也不奏效

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

最后发现原来是项目路径配置错了。

修改步骤:
idea Tomcat环境为例:

编辑服务器配置

修改项目启动路径

 

扫描二维码关注公众号,回复: 8518941 查看本文章

重新启动,index.jsp默认加载成功。 

发布了33 篇原创文章 · 获赞 1 · 访问量 4168

猜你喜欢

转载自blog.csdn.net/qq_39827677/article/details/103722519