只有当它直接位于eclipse中的WebContent下时,我才能够访问资源(如test.html)。如果我将它放在WEB-INF或WEB-INF/jsp IDE显示错误404请求的资源不可用。404-在eclipse中找不到的子目录下的资源
http://localhost:8080/MyApp/test.html (This works when test.html is under WebContent and not any of it's subdirectory)
当它在的WebContent/WEB-INF 右键单击运行需要到以下网址,显示404 - 资源不可
http://localhost:8080/MyApp/WEB-INF/test.html
我如何通过将“测试访问它。 html“在WEB-INF或WEB-INF/jsp中?
所有配置都默认在web.xml和使用Tomcat 7 Web服务器