1. 程式人生 > >專案出現 java.lang.NoClassDefFoundError: ch/qos/logback/core/joran/spi/JoranException

專案出現 java.lang.NoClassDefFoundError: ch/qos/logback/core/joran/spi/JoranException

注入這個依賴

<dependency>
   <groupId>ch.qos.logback</groupId>
   <artifactId>logback-classic</artifactId>
   <version>1.1.3</version>
   <exclusions>
      <exclusion>
         <artifactId>slf4j-api</artifactId>
         <groupId>org.slf4j</groupId>
      </exclusion>
   </exclusions>
   <scope>provided</scope>
</dependency>