j2ee 开发应用服务器的 404 错误跳转的设置 web.xml

来源:互联网 发布:宾得wifi软件 编辑:程序博客网 时间:2024/04/30 10:34

j2ee 开发应用服务器的 404 跳转错误的设置,向 web.xml 添加如下内容即可设置 404 自动跳转


<error-page><error-code>404</error-code><location>/404.html</location></error-page>

404.html 为错误显示页,页可以定义成其他页面。

0 0
原创粉丝点击