Web applications 在Tomcat6中,哪个优先:index.html还是index.jsp?
我们的web应用程序包含index.html和index.jsp,我们使用ApacheTomcat6。当一个请求的路径(例如)到达tomcat时,将为哪个请求提供服务 这是index.html还是index.jspWeb applications 在Tomcat6中,哪个优先:index.html还是index.jsp?,web-applications,tomcat6,Web Applications,Tomcat6,我们的web应用程序包含index.html和index.jsp,我们使用ApacheTomcat6。当一个请求的路径(例如)到达tomcat时,将为哪个请求提供服务 这是index.html还是index.jsp 它是可配置的吗?index.html将优先考虑,但您可以在web.xml中的欢迎文件列表下更改它 <welcome-file-list> <welcome-file>index.jsp</welcome-file> <welcom
它是可配置的吗?
index.html
将优先考虑,但您可以在web.xml
中的欢迎文件列表下更改它
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
</welcome-file-list>
index.jsp
index.html
index.htm
在部分请求的情况下,上面的配置将尝试index.jsp
,然后index.html
,然后index.htm
index.html
将被优先考虑,但您可以在web.xml
中的欢迎文件列表下更改此设置
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
</welcome-file-list>
index.jsp
index.html
index.htm
在部分请求的情况下,上述配置将尝试index.jsp
,然后是index.html
,然后是index.htm