tomcat:配置-web.xml

tomcat中如何禁止和允许列目录下的文档

<init-param> 
<param-name>listings</param-name> 
<param-value>false</param-value> 
</init-param>

出错页面定义

<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/500.jsp</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/500.jsp</location>
</error-page>
<error-page>
<error-code>403</error-code>
<location>/403.jsp</location>
</error-page>
<error-code>404</error-code>
<location>/404.jsp</location>
</error-page>

你可能感兴趣的:(tomcat:配置-web.xml)