解决方案
20
10
在web.xml文件中配置如下代码:
<!-- 错误页面 --> <error-page> <error-code>404</error-code> <location>/404.jsp</location> </error-page> <error-page> <error-code>500</error-code> <location>/500.jsp</location> </error-page> <error-page> <error-code>400</error-code> <location>/400.jsp</location> </error-page>
10
不好意思,本人之前大致写了一下,在手机上回复不好写。重新整理了一下。



