`

tomcat配置全局错误页面设置

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

相关推荐

Global site tag (gtag.js) - Google Analytics