SpringMVC监听器详解

1、ContextLoaderListener           ContextLoaderListener监听器的做用就是启动Web容器时,自动装配ApplicationContext的配置信息。由于它实现了ServletContextListener这个接口,web.xml配置这个监听器启动容器时,就会默认执行它实现的方法。在ContextLoader-Listener中关联了Context
相关文章
相关标签/搜索