摘要:
spring通过在web.xml 中配置ContextLoaderListener 来加载context配置文件,在DispatcherServlet中也可以来加载spring context配置文件,那么这两个有什么区别呢。ContextLoaderListener中加载的context成功后,s... 阅读全文
摘要:
(一)ContextLoaderListener 与 ContextLoaderServlet本质上是等同的,都是调用ContextLoader来加载web程序的上下文,加载完成以后,都是在ServletContext中,只不过listener需要Servlet2.3及以上支持。(二)Context... 阅读全文