<error-page>
         <error-code>400</error-code>
         <location>/errorDocument.html</location>
     </error-page>     <error-page>
         <error-code>404</error-code>
         <location>/errorDocument.html</location>
     </error-page>     <error-page>
         <error-code>500</error-code>
         <location>/errorDocument.html</location>
     </error-page>
在web.xml 配置一下就可以了