添加多个spring的xml文件

在web.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,
 </param-value>
</context-param>

相关推荐