spring项目中监听器做用

监听器 spring框架的启动入口 ContextLoaderListener 做用:在启动Web 容器时,自动装配Spring applicationContext.xml 的配置信息。 由于它实现了ServletContextListener 这个接口,在web.xml 配置这个监听器,启动容器时,就会默认执行它实现的方法。在ContextLoaderListener 中关联了ContextL
相关文章
相关标签/搜索