1. 程式人生 > >log4j:ERROR Could not read configuration file [log4j.properties]

log4j:ERROR Could not read configuration file [log4j.properties]

clas fig erro config 錯誤 程序 pos 遇到 could not

遇到這個錯誤,程序能夠正常運行,log4j.properties也在classpath中,後來在網上查了資料,把下面這個語句去掉就好啦。

PropertyConfigurator.configure("log4j.properties");

引用:

技術分享圖片

log4j:ERROR Could not read configuration file [log4j.properties]