[英]I cannot use Debug on IntelliJ : java.lang.NoSuchMethodError: 'org.slf4j.impl.StaticMDCBinder org.slf4j.impl.StaticMDCBinder.getSingleton()'
I am working on Spring Boot and getting NoSuchMethodError when I click on Debug.我正在处理 Spring 启动并在单击调试时收到 NoSuchMethodError。 Apparently it is caused by multiple slf4j bindings in the classpath.
显然它是由类路径中的多个 slf4j 绑定引起的。 It all happened all of a sudden and I am not able to fix this for over a week now.
这一切都是突然发生的,我一个多星期都无法解决这个问题。
Please see the attached stacktrace.请参阅附加的堆栈跟踪。
My maven dependency tree is pasted below showing the different loggers on the list.我的 maven 依赖树粘贴在下面,显示列表中的不同记录器。
[INFO] +- org.thymeleaf.extras:thymeleaf-extras-springsecurity5:jar:3.0.4.RELEASE:compile
[INFO] | \- org.slf4j:slf4j-api:jar:1.7.30:compile
[INFO] +- org.springframework.boot:spring-boot-starter-actuator:jar:2.4.2:compile
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:2.4.2:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-logging:jar:2.4.2:compile
[INFO] | | | +- ch.qos.logback:logback-classic:jar:1.2.3:compile
[INFO] | | | | \- ch.qos.logback:logback-core:jar:1.2.3:compile
[INFO] | | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.13.3:compile
[INFO] | | | | \- org.apache.logging.log4j:log4j-api:jar:2.13.3:compile
[INFO] | | | \- org.slf4j:jul-to-slf4j:jar:1.7.30:compile
There could be many breakpoints可能有很多断点
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.