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)  編輯  收藏


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


          網站導航:
           

          導航

          統計

          常用鏈接

          留言簿

          隨筆檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 营山县| 叶城县| 大姚县| 忻州市| 天水市| 耒阳市| 逊克县| 鲁甸县| 安新县| 扎兰屯市| 海南省| 托克托县| 赣州市| 海盐县| 日照市| 乐昌市| 西平县| 绥宁县| 启东市| 杨浦区| 崇礼县| 甘谷县| 临澧县| 达拉特旗| 阜康市| 翁源县| 鸡西市| 时尚| 韶关市| 繁峙县| 修武县| 富平县| 金华市| 奎屯市| 上虞市| 莲花县| 汝州市| 平远县| 岑溪市| 扎囊县| 申扎县|