企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
Servlet 的有8大监听器,可以分为如下三大类: **1. 监听Context、Request、Session对象的创建和销毁** * ServletContextListener。 * ServletRequestListener。 * HttpSessionListener。 **2. 监听Context、Request、Session对象属性的变化** * ServletContextAttributeListener。 * ServletRequestAttributeListener。 * HttpSessionAttributeListener。 **3. 监听Session内部的对象变化** * HttpSessionActivationListener:监听一个实体类是否与session一同被序列化与反序列化。 * HttpSessionBindingListener:监听一个实体类是否被添加到session中。