配备出错页面

配置出错页面error-pageerror-code404/error-codelocation/404.jsp/location/error-pageerro

配置出错页面

<error-page><error-code>404</error-code><location>/404.jsp</location></error-page><error-page><error-code>500</error-code><location>/error.jsp</location></error-page>

把这句放进web.xml中可以了。