zoukankan      html  css  js  c++  java
  • web.xml上监听器作用

    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


    一起用

  • 相关阅读:
    java配置文件读取
    简易表单验证
    Enter键提交表单
    background-attachment:fixed应用
    随机生成密钥
    javascript/jquery判断是否为undefined或是null!
    jQuery获取和设置disabled属性、背景图片路径
    $(function(){})里面不能声明定义函数
    CSS浏览器兼容性----Hack
    数组快速排序
  • 原文地址:https://www.cnblogs.com/zhangchengxiang/p/5282871.html
Copyright © 2011-2022 走看看