java學習

          java學習

           

          log4j整合springmvc在web.xml中的配置

          <!-- Log4j配置 -->
          <context-param>
            <param-name>log4jConfigLocation</param-name>
            <param-value>classpath:config/log4j.properties</param-value>
            </context-param>
            <context-param>  
                  <param-name>log4jRefreshInterval</param-name>  
                  <param-value>60000</param-value>  
              </context-param>  
              <listener>  
                  <listener-class>  
                      org.springframework.web.util.Log4jConfigListener  
                  </listener-class>  
              </listener>  
          <!-- end -->  
            
              <listener>  
                  <listener-class>  
                      org.springframework.web.context.ContextLoaderListener  
                  </listener-class>  
              </listener> 
          配置的順序不能亂!

          posted on 2017-11-14 17:17 楊軍威 閱讀(1559) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           

          導航

          統計

          常用鏈接

          留言簿

          隨筆檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 内黄县| 明光市| 嘉峪关市| 晋城| 孟连| 榆社县| 冀州市| 陆丰市| 昌吉市| 南木林县| 乌兰察布市| 嘉祥县| 连山| 鄂托克旗| 都兰县| 铜鼓县| 昆明市| 普安县| 雅江县| 屯昌县| 中山市| 织金县| 宁强县| 道孚县| 祁阳县| 林甸县| 二连浩特市| 武威市| 台前县| 延吉市| 图片| 昌都县| 兴安盟| 定边县| 嘉荫县| 荣成市| 烟台市| 望谟县| 白朗县| 察雅县| 宜君县|