<error-page>
<error-code>404</error-code>
<location>/error/error_404.html</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/error/error_500.html</location>
</error-page>
<error-page>
<exception-type>java.lang.NullPointerException</exception-type>
<location>/error/error_exceptionByNull.html</location>
</error-page>
本文介绍如何为Web应用程序配置自定义的错误页面,包括常见的HTTP 404(未找到)和500(内部服务器错误),以及Java空指针异常处理页面的设置。
1万+

被折叠的 条评论
为什么被折叠?



