WEB.XML配置如下:
<web-app>
<error-page>
<error-code>500</error-code>
<location>/error/nopage.html</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/error/error.jsp</location>
</error-page>
</web-app>
-----DND-----
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/










