错误页面跳转解决办法
在web.xml中配置错误页面跳转如下:
? <error-page>
??? <exception-type>java.lang.Exception</exception-type>
??? <location>/error.html</location>
? </error-page>
? <!-- 页面不存在时跳转-->
? <error-page>
??? <error-code>500</error-code>
??? <location>/error.html</location>
? </error-page>
?
? <error-page>
??? <error-code>404</error-code>
??? <location>/error.html</location>
? </error-page>