由于SpringBoot本身默认自带logback日子的,现在用了log4j2来作日志管理,需要把原来的spring-boot-starter-logging包排除,不然出现slf4j相关包冲突。

Springboot集成log4j2运行报错java.lang.IllegalStateException: Logback configuration error detected
解决:
Springboot集成log4j2运行报错java.lang.IllegalStateException: Logback configuration error detected
Springboot集成log4j2运行报错java.lang.IllegalStateException: Logback configuration error detected
运行成功
Springboot集成log4j2运行报错java.lang.IllegalStateException: Logback configuration error detected

相关文章: