首页 > 编程语言 > 详细

web中如何spring如何配置

时间:2017-09-30 20:38:50      阅读:234      评论:0      收藏:0      [点我收藏+]

<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如何配置

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!