本文介绍了LoggerFactory不是Logback LoggerContext,但Logback位于类路径上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我认为Spring-Boot-starter-Security中的某些模块与log4j冲突,但我不知道是哪个模块。
我的Gradle依赖如下:
compile("org.springframework.boot:spring-boot-starter-thymeleaf") compile("org.springframework.boot:spring-boot-starter-security"){ exclude module: "spring-boot-starter-logging" } compile "org.apache.logging.log4j:log4j-api" compile "org.apache.logging.log4j:log4j-core" compile "org.apache.logging.log4j:log4j-slf4j-impl" compile('org.apache.poi:poi:3.10.1') compile('org.apache.poi:poi-ooxml:3.10.1') testCompile("junit:junit") 推荐答案我想明白了
compile("org.springframework.boot:spring-boot-starter-security"){ exclude module: "spring-boot-starter-logging" exclude module: "logback-classic" } compile("org.springframework.boot:spring-boot-starter-thymeleaf"){ exclude module: "logback-classic" }更多推荐
LoggerFactory不是Logback LoggerContext,但Logback位于类路径上
发布评论