ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...


Struts2未配置Log4j2.xml報錯

Log4j2.xml中的配置

log4j的jar包:log4j-core-2.7.jar

log4j2只支持xml和json兩種格式的配置,所以配置log4j.properties時,是沒有作用的。

參考文檔:

1):https://blog.csdn.net/weixin_40135537/article/details/78936054

2):https://www.cnblogs.com/hafiz/p/6170702.html 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM