ErrorPage的使用

xiaoxiao2021-04-16  53

web.xml中配置以下信息

<!-- 错误页面配置信息 --> <error-page> <error-code>404</error-code> <location>/errorpage/404.jsp</location> </error-page> <error-page> <error-code>500</error-code> <location>/errorpage/500.html</location> </error-page> <error-page> <exception-type>java.long.Exception</exception-type> <location>/errorpage/exception.html</location> </error-page>
转载请注明原文地址: https://www.6miu.com/read-4818098.html

最新回复(0)