当前位置: 代码迷 >> Web前端 >> 在web.xml中经过contextConfigLocation配置spring
  详细解决方案

在web.xml中经过contextConfigLocation配置spring

热度:87   发布时间:2012-11-07 09:56:10.0
在web.xml中通过contextConfigLocation配置spring
如何在web.xml中配置contextConfigLocation的参数,即怎么来配置在classpath中的xml文件:

<context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>
            classpath*:conf/spring/applicationContext_core*.xml,
            classpath*:conf/spring/applicationContext_dict*.xml,
            classpath*:conf/spring/applicationContext_hibernate.xml,
            classpath*:conf/spring/applicationContext_staff*.xml,
            classpath*:conf/spring/applicationContext_security.xml
            classpath*:conf/spring/applicationContext_modules*.xml
            classpath*:conf/spring/applicationContext_cti*.xml
            classpath*:conf/spring/applicationContext_apm*.xml
        </param-value>
</context-param>

From: http://gwj41.iteye.com/blog/538578
  相关解决方案