tomcat配置全局错误页面设置

1.修改配置文件:tomcat\conf\web.xml
  添加类似的配置:
<error-page>
<error-code>404</error-code>
<location>/message/error.html</location>
</error-page>
2.error.html文件不能太小,否则转向不会成功。

猜你喜欢

转载自huiy.iteye.com/blog/2087917