multiple error-code configuration web.xml

后端 未结 4 830
野趣味
野趣味 2021-01-19 15:05

I\'d like to direct all errors to my Errorsevlet without specifying all the codes explicitly. Is there any way to do like that?


   

        
4条回答
  •  南方客
    南方客 (楼主)
    2021-01-19 15:27

    
        java.lang.Throwable 
        /servlet/com.ibm.eisa.servlet.ErrorServlet 
    
    

    Try this one, all of your errors will be caught(500's) not 404 etc

提交回复
热议问题