摘要: ~ 阅读全文
posted @ 2014-02-10 16:49 破棉袄 阅读(145) 评论(0) 推荐(0)
摘要: ContextLoaderListener监听器的作用就是启动Web容器时,自动装配ApplicationContext的配置信息。因为它实现了ServletContextListener这个接口,在web.xml配置这个监听器,启动容器时,就会默认执行它实现的方法。至于ApplicationContext.xml这个配置文件部署在哪,如何配置多个xml文件,书上都没怎么详细说明。现在的方法就是查看它的API文档。在ContextLoaderListener中关联了ContextLoader这个类,所以整个加载配置过程由ContextLoader来完成。看看它的API说明。 第一段说明Cont 阅读全文
posted @ 2014-02-10 16:47 破棉袄 阅读(890) 评论(0) 推荐(0)