根据默认配置,我在conf / web.xml文件中有一个欢迎文件列表。
我有一个带有ROOT / index.html的ROOT应用程序。例如example.com/index.html网页可以正确显示,但http://example.com不起作用(404错误)。
答案 0 :(得分:0)
原因是web.xml文件损坏。
<
<filter-mapping>
<filter-name>httpHeaderSecurity</filter-name>
<url-pattern>/*</url-pattern>
<url-pattern>*</url-pattern>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
-