- <?xml version="1.0" encoding="UTF-8"?>
- <web-app version="2.5"
- xmlns="http://java.sun.com/xml/ns/javaee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
- http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
- <error-page>
- <error-code>404</error-code>
- <location>/error/404error.jsp</location>
- </error-page>
- <error-page>
- <error-code>500</error-code>
- <location>/error/500error.jsp</location>
- </error-page>
- <error-page>
- <exception-type>java.lang.RuntimeException</exception-type>
- <location>/error/runtimeerror.jsp</location>
- </error-page>
- </web-app>
jsp 配置web.xml 错误页面
最新推荐文章于 2022-09-06 09:53:46 发布