第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

自定義log4j配置文件路徑后,只能使用文件夾形式(war exploded模式)部署

自定義log4j配置文件路徑后,只能使用文件夾形式(war exploded模式)部署

慕工程0101907 2019-03-20 18:15:08
我在web.xml中設(shè)置了一個(gè)自定義的log4jConfigLocation位置 <!--Log4J配置--><context-param><param-name>webAppRootKey</param-name><param-value>DPCM.root</param-value></context-param><context-param>    <param-name>log4jConfigLocation</param-name>    <param-value>classpath:conf/log/log4j.xml</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>在Intellij IDEA 中運(yùn)行 使用war exploded 模式 也就是 使用文件夾方式部署,可以正常啟動(dòng), 而使用war方式部署,會(huì)得到錯(cuò)誤提示log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).log4j:WARN Please initialize the log4j system properly.log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 412 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)