这是一个非常常见的问题,但我无法找到它的解决方案。我已经在Eclipse中创建了一个动态Web项目。这是一个没有java的空项目,我尝试在Tomcat服务器上运行它,它给我files.Whenever状态404错误:请求的资源找不到。欢迎页面index.html位于WEB-INF文件夹中,web.xml的内容如下所示
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>发布于 2017-02-19 01:51:13
index.html应该在WEB-INF文件夹旁边的web项目根文件夹中。因此,在Eclipse中,文件夹结构应该如下所示:
MyEclipseProject
...
WebContent
index.html
...
WEB-INF
web.xmlhttps://stackoverflow.com/questions/42316304
复制相似问题