`

屏蔽jsp页面异常

阅读更多
在web.xml进行如下配置,即可在页面出现异常转向相应页面
<error-page>
      <error-code>404</error-code>
       <location>/error.jsp</location>
</error-page>
<error-page>
      <error-code>500</error-code>
      <location>/error.jsp</location>
</error-page>
<error-page>
       <error-code>503</error-code>
       <location>/error.jsp</location>
</error-page>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics