tomcat配置全局錯誤頁面設置

1.修改配置文件:tomcat\conf\web.xml 添加相似的配置: <error-page> <error-code>404</error-code> <location>/message/error.html</location> </error-page> 2.error.html文件不能過小,不然轉向不會成功。
相關文章
相關標籤/搜索