ServletContextListener使用詳解(監聽Tomcat啓動、關閉)

在 Servlet API 中有一個 ServletContextListener 接口,它可以監聽 ServletContext 對象的生命週期,實際上就是監聽 Web 應用的生命週期。html   當Servlet 容器啓動或終止Web 應用時,會觸發ServletContextEvent 事件,該事件由ServletContextListener 來處理。在 ServletContextLi
相關文章
相關標籤/搜索