Class path contains multiple SLF4J bindings.

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/F:/mavenRepo/org/slf4j/slf4j-log4j12/1.7.25/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/F:/mavenRepo/ch/qos/logback/logback-classic/1.1.11/logback-classic-1.1.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Detected both log4j-over-slf4j.jar AND bound slf4j-log4j12.jar on the class path, preempting StackOverflowError. 
SLF4J: See also http://www.slf4j.org/codes.html#log4jDelegationLoop for more details.
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.slf4j.impl.StaticLoggerBinder.(StaticLoggerBinder.java:72)
at org.slf4j.impl.StaticLoggerBinder.(StaticLoggerBinder.java:45)
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:412)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:357)
at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:155)
at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:655)
at org.springframework.boot.SpringApplication.(SpringApplication.java:179)

at rxcd.kw.spectrum.SpectrumDisplayApplication.main(SpectrumDisplayApplication.java:12)


这个问题是jar包冲突导致的,我们应该是删除其中的一个

<dependency>
   <groupId>org.apache.phoenixgroupId>
   <artifactId>phoenix-coreartifactId>
   <version>4.7.0-HBase-1.1version>
   <scope>runtimescope>
   <exclusions>
      <exclusion>
         <groupId>org.slf4jgroupId>
         <artifactId>slf4j-log4j12artifactId>
      exclusion>

      <exclusion>
         <groupId>javax.servletgroupId>
         <artifactId>servlet-apiartifactId>
      exclusion>

      <exclusion>
         <groupId>org.mortbay.jettygroupId>
         <artifactId>servlet-api-2.5artifactId>
      exclusion>
   exclusions>
dependency>
<dependency>
   <groupId>org.apache.phoenixgroupId>
   <artifactId>phoenix-coreartifactId>
   <version>4.7.0-HBase-1.1version>
   <scope>runtimescope>
   <exclusions>
      <exclusion>
         <groupId>jdk.toolsgroupId>
         <artifactId>jdk.toolsartifactId>
      exclusion>

      <exclusion>
         <groupId>org.slf4jgroupId>
         <artifactId>slf4j-log4j12artifactId>
      exclusion>
   exclusions>
dependency>


你可能感兴趣的:(springCloud)