Java - 配置404/500错误界面指向
在web.xml加多一个配置:
代码如下:
<!-- 注意这里必须是*.jsp --><error-page><error-code>404</error-code><location>/exception.jsp</location></error-page><error-page><error-code>500</error-code><location>/exception.jsp</location></error-page>