本文共 1146 字,大约阅读时间需要 3 分钟。
SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/home/link/data/server/test_tomcat_main/webapps/ROOT/WEB-INF/lib/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/home/link/data/server/test_tomcat_main/webapps/ROOT/WEB-INF/lib/slf4j-log4j12-1.7.10.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.apache.logging.slf4j.Log4jLoggerFactory]
如上加载正确了,有时候会变成这样:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/link/data/server/test_tomcat_main/webapps/ROOT/WEB-INF/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]SLF4J: Found binding in [jar:file:/home/link/data/server/test_tomcat_main/webapps/ROOT/WEB-INF/lib/log4j-slf4j-impl-2.10.0.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]原因是有多个实现类,删除掉slf4j-log4j12-1.7.10.jar jar包即可
转载地址:http://juyai.baihongyu.com/