web.xml文件添加错误页面

web.xml文件添加错误页面

<web-app>
  <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>    
</web-app>

猜你喜欢

转载自blog.csdn.net/qiuqiu1628480502/article/details/80626365