如何获取基本URL以映射到tomcat 7中的index.html?

时间:2019-01-31 18:40:05

标签: tomcat

根据默认配置,我在conf / web.xml文件中有一个欢迎文件列表。

我有一个带有ROOT / index.html的ROOT应用程序。例如example.com/index.html网页可以正确显示,但http://example.com不起作用(404错误)。

1 个答案:

答案 0 :(得分:0)

原因是web.xml文件损坏。

<
<filter-mapping>
    <filter-name>httpHeaderSecurity</filter-name>
    <url-pattern>/*</url-pattern>
    <url-pattern>*</url-pattern>
    <dispatcher>REQUEST</dispatcher>
</filter-mapping>
-