Java http 404找到了tomcat 8.5

Java http 404找到了tomcat 8.5,java,Java,当我试图进入网站时 这是我从浏览器中获得的信息: HTTP Status [404] – [Not Found] Type Status Report Message /CrunchifySpringMVCTutorial Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exis

当我试图进入网站时

这是我从浏览器中获得的信息:

HTTP Status [404] – [Not Found]

Type Status Report

Message /CrunchifySpringMVCTutorial

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

Apache Tomcat/8.5.15
这是我尝试过的,但仍然不起作用:
将项目导出为war文件,并通过将war文件放在webapp文件夹中部署到tomcat。

您需要将该文件添加到欢迎文件列表标记下的web.xml文件中,以便服务器知道如何为用户显示页面

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

您的web.xml文件应该位于web-INF文件夹中。

对此的唯一有效响应是so?欢迎使用堆栈溢出!在尝试提出更多问题之前,请先阅读。您好,很抱歉,这是我第一次使用stackoverflow提问,所以我不熟悉格式。谢谢你的回复!但是我已经在我的项目中添加了标记和web.xml,但它仍然不起作用。也许可以尝试将index.jsp放在那里,并确保您导航到服务器上的index.jsp文件,而不是完整的文件路径。答案框用于回答,而不是猜测!考虑到他们发布的内容,根本没有办法知道这个人的环境出了什么问题,更不用说如何修复了。