原文:log4j報錯ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.

ERROR StatusLogger No log j configuration file found. Using default configuration: logging only errors to the console. log j版本:log j core . .jar log j api . .jar log j 只支持xml和json兩種格式的配置,所以配置log j.pro ...

2016-11-26 21:47 0 27130 推薦指數:

查看詳情

Spring Boot ERROR StatusLogger No Log4j 2 configuration file found

1. 問題描述   項目之前的 log4j2 配置沒問題,把 pom 文件中的 spring-boot-starter-web 依賴刪除后,然后啟動項目就報錯找不到 log4j2.yml 文件。   之前引用的 log4j2 依賴pom如下: 2. 解決方案   后來參照這位 ...

Wed Oct 16 19:34:00 CST 2019 0 797
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM