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

web.xml中配置spring监听器和spring配置文件位置

时间:2017-06-03 18:11:40      阅读:204      评论:0      收藏:0      [点我收藏+]

标签:name   web.xml   pat   nbsp   text   classpath   监听   class   listener   

<!-- spring配置文件位置 -->
 <context-param>
  <param-name>contextConfigLocation</param-name>
  <param-value>classpath:applicationContext.xml</param-value>
 </context-param>
 <!-- spring核心监听器 -->
 <listener>
  <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
 </listener>

web.xml中配置spring监听器和spring配置文件位置

标签:name   web.xml   pat   nbsp   text   classpath   监听   class   listener   

原文地址:http://www.cnblogs.com/huqin/p/6937994.html

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