ExceptionInInitializerError Log4jLoggerFactory


SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/loufei/IdeaProjects/apache-maven-3.6.0/repository/ch/qos/logback/logback-classic/1.1.11/logback-classic-1.1.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/loufei/IdeaProjects/apache-maven-3.6.0/repository/org/slf4j/slf4j-log4j12/1.7.25/slf4j-log4j12-1.7.25.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 [ch.qos.logback.classic.util.ContextSelectorStaticBinder]

导致异常

java.lang.ExceptionInInitializerError: null
	at org.slf4j.impl.Log4jLoggerFactory.<clinit>(Log4jLoggerFactory.java:54)

通过maven pom排除掉 slf4j-log4j12即可

猜你喜欢

转载自blog.csdn.net/fei33423/article/details/107237322