![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring框架
longsq602
这个作者很懒,什么都没留下…
展开
-
ContextLoaderListener的作用和配置
ContextLoaderListener的作用就是启动Web容器时,自动装配ApplicationContext的配置信息。因为它实现了ServletContextListener这个接口,在web.xml配置这个监听器,启动容器时,就会默认执行它实现的方法。至于ApplicationContext.xml这个配置文件部署在哪,如何配置多个xml文件,书上都没怎么详细说明。现在的方法就是查看它的原创 2014-11-12 15:13:44 · 373 阅读 · 0 评论 -
web.xml中的contextConfigLocation的作用
在web.xml中通过contextConfigLocation配置spring,contextConfigLocation 参数定义了要装入的 Spring 配置文件。 如果想装入多个配置文件,可以在 标记中用逗号作分隔符。 在web.xml里配置Listener xml 代码如下: listener > listene转载 2015-10-14 14:32:09 · 274 阅读 · 0 评论