首页 > Web开发 > 详细

web.xml上监听器作用

时间:2016-03-16 12:18:27      阅读:270      评论:0      收藏:0      [点我收藏+]
  1. <!--Spring ApplicationContext 载入 -->  
  2. <listener>  
  3.     <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>  
  4. </listener>  
  5.   
  6. <!-- 使Spring支持request与session的scope,如:<bean id="loginAction" class="com.foo.LoginAction" scope="request"/> -->  
  7. <listener>  
  8.   <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>  
  9. </listener>  
  10.   
  11. <!-- Spring 刷新Introspector防止内存泄露 -->  
  12. <listener>  
  13.     <listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class>  
  14. </listener>  



<context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>
            /WEB-INF/config/application-context.xml
            /WEB-INF/config/cache-context.xml
            /WEB-INF/config/captcha-context.xml
            /WEB-INF/config/jeecore-context.xml
            /WEB-INF/config/jeecms-context.xml
        </param-value>
    </context-param>


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


一起用

web.xml上监听器作用

原文:http://www.cnblogs.com/zhangchengxiang/p/5282871.html

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