SLF4J:ClasspathcontainsmultipleSLF4Jbindings.SLF4J:Foundbindingin版权声明

原创
小哥 3年前 (2022-11-11) 阅读数 5 #大杂烩

让代码飞

目标: 阶段1:可以替换任何人 阶段2:没有人可以取代你

SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in

异常:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/Administrator/.m2/repository/org/slf4j/slf4j-log4j12/1.7.21/slf4j-log4j12-1.7.21.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/Administrator/.m2/repository/ch/qos/logback/logback-classic/1.1.3/logback-classic-1.1.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple\_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]

解决方案:

jar包冲突,请删除其中一个jar包

遇到Class path contains multiple SLF4J bindings.如何解决?

slf4j-api、slf4j-log4j12以及log4j这是什么关系?

版权声明

所有资源都来源于爬虫采集,如有侵权请联系我们,我们将立即删除