1.ServletContextListener:监控web容器的启动和关闭

2.HttpSessionListener:监控bs结构中b的session创建和session销毁

3.HttpSessionBindingListener:控制bs结构中b的session中值得添加和remove.(接口中共定义了两个方法:valueBound()和valueUnbound())

4.ContextLoaderListener: 实现(继承)这个抽象类,可以指定加载那个.xml文件形成Application.xml对于的东东.一般用于把ApplicationContext保存起来,以便在web环境中使用Application,避免重复加载applicationContext.xml,很耗资源.(见孙经理写的MyContextLoaderListener----给ContextUtil,setAc(ac)).

相关文章:

  • 2021-12-20
  • 2021-10-06
  • 2021-07-15
  • 2022-01-24
  • 2022-01-06
  • 2021-11-08
  • 2021-11-03
猜你喜欢
  • 2021-09-23
  • 2021-09-10
  • 2021-11-24
  • 2021-07-15
  • 2021-07-30
  • 2021-05-16
  • 2021-06-10
相关资源
相似解决方案