Preferred way to handle Java exceptions in ServletContextListener

前端 未结 4 1818
借酒劲吻你
借酒劲吻你 2020-12-29 06:18

For servlet lifecycle stuff, what do you guys recommend doing in response to an exception...

For example,

public class Foo implements ServletContextL         


        
4条回答
  •  梦毁少年i
    2020-12-29 06:40

    We can the Exception through the object.printStackTrace(); or calling the Exception through out.print("Exception is"+ ex);

提交回复
热议问题