多个配置文件引入

配置文件的位置可以随自己按实际情况配置

spring:

在applicationContext.xml引用其他以此前缀的spring配置文件
 <import resource="applicationContext-*.xml" />

在web.xml里配置引用

classpath:config/spring/applicationContext*.xml

struts:

在struts.xml中引用其他

<include file="struts-*.xml"/>

 

 

posted @ 2013-06-08 18:18  果c子  阅读(200)  评论(0编辑  收藏  举报