原文: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