首页 > 编程语言 > 详细

【1.0】谈谈spring的启动过程

时间:2017-09-01 22:48:51      阅读:246      评论:0      收藏:0      [点我收藏+]

1.web.xml中:

<!-- 加载spring容器 -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:spring/applicationContext-*.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>

</listener>

从配置文件中,便知道spring在web项目中由监听器ContextLoaderListener加载对应的spring配置文件applicationContext-*.xml完成对spring的启动。

 

【1.0】谈谈spring的启动过程

原文:http://www.cnblogs.com/chxbar/p/7465271.html

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