SLF4J: Class path contains multiple SLF4J bindings

错误记录:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/admin/.m2/repository/org/slf4j/slf4j-log4j12/1.6.4/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/admin/.m2/repository/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

解决办法

1.去掉


去掉其中的slf4j-log4j12-1.5.8.jar或slf4j-log4j12-1.6.0.jar从类路径。你的项目不应该依靠的是slf4j的不同版本。我建议你只使用1.6.0。

你可能感兴趣的:(SLF4J: Class path contains multiple SLF4J bindings)