tomcat配置全局错误页面设置

1.修改配置文件:tomcat\conf\web.xml 添加相似的配置: <error-page> <error-code>404</error-code> <location>/message/error.html</location> </error-page> 2.error.html文件不能过小,不然转向不会成功。
相关文章
相关标签/搜索