LoggerFactory不是Logback LoggerContext,但Logback位于类路径上

编程入门 行业动态 更新时间:2024-10-24 08:29:35
本文介绍了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位于类路径上

本文发布于:2023-11-14 10:17:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1586949.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:路径   LoggerFactory   Logback   LoggerContext

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!