web.xml 配置 contextConfigLocation(多个Spring配置文件)

web.xml 配置 contextConfigLocation(多个Spring配置文件)

<context-param>  
<param-name>contextConfigLocation</param-name>  
<param-value>WEB-INF/applicationContext*.xml</param-value>  
</context-param>  

<context-param>   
<param-name>contextConfigLocation</param-name>   
<param-value>classpath:/spring/applicationContext-*.xml</param-value>   
</context-param> 

多个配置文件中间用,隔开

<context-param>
		<param-name>contextConfigLocation</param-name>
		<param-value>classpath:application-context.xml,classpath:application-others.xml</param-value>
</context-param>

猜你喜欢

转载自crabdave.iteye.com/blog/2337906
今日推荐