1·ContextLoaderListener 用法
ContextLoaderListener监听器的作用就是启动Web容器时,自动装配ApplicationContext的配置信息。因为它实现了ServletContextListener这个接口,在web.xml配置这个监听器,启 动容器时,就会默认执行它实现的方法。ContextLoaderListener监听器
1·ContextLoaderListener 用法
ContextLoaderListener监听器的作用就是启动Web容器时,自动装配ApplicationContext的配置信息。因为它实现了ServletContextListener这个接口,在web.xml配置这个监听器,启 动容器时,就会默认执行它实现的方法。ContextLoaderListener监听器