我有一个webcontext rootname“testProject”的webapp。我试图用web.xml
和配置欢迎文件:Web.xml欢迎文件在码头中不起作用
<welcome-file-list>
<welcome-file>/jspFiles/index.html</welcome-file>
</welcome-file-list>
这部作品tomcat的,但不能在码头:
的Tomcat 7.0:
- 正确显示的index.html如果我浏览到
localhost:8080/testProject/
- 正确显示的index.html如果我浏览到
localhost:8080/testProject/jspFiles/index.html
码头9.0:
- 给出了404错误如果我浏览到
localhost:8080/testProject/
- 正确显示的index.html如果我浏览到
localhost:8080/testProject/jspFiles/index.html
我WebContent文件夹看起来像这样;
Webcontent
|
+ jspFiles/index.html
|
+ META-INF
|
+ WEBINF
|
+ web.xml
我需要配置一些额外的东西来使这项工作在码头上吗?