码迷,mamicode.com
首页 > 编程语言 > 详细

web中如何spring如何配置

时间:2017-09-30 20:57:03      阅读:163      评论:0      收藏:0      [点我收藏+]

标签:文件   lis   load   -name   目录   ade   ica   class   hiberna   

<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>

spring会默认在WEB-INF目录下查找applicationContext.xml文件

如果有多个配置文件

<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:applicationContext-hibernate.xml
<!-- classpath:applicationContext-hibernate_jndi.xml-->
classpath:applicationContext-dao.xml
classpath:applicationContext-service.xml
classpath:spring/proxy/system.xml,
</param-value>
</context-param>

 

<listener> 
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> 
</listener>

web中如何spring如何配置

标签:文件   lis   load   -name   目录   ade   ica   class   hiberna   

原文地址:http://www.cnblogs.com/karmapeng/p/7616012.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!