SpringBoot项目报错Exception in thread "main" java.lang.NoClassDefFoundError: ch/qos/logback/classic/turb

原文:https://blog.csdn.net/Jack_EUSong/article/details/79363682

<version>1.5.10.RELEASE</version>

运行项目时候报错, 从maven上面 重新下载一下logback-classic-1.1.11.jar 和 logback-core-1.1.11.jar

配置文件调整一下:
<dependency>
             <groupId>ch.qos.logback</groupId>
             <artifactId>logback-classic</artifactId>
             <version>1.1.11</version>
             <exclusions>
                <exclusion>
                   <artifactId>slf4j-api</artifactId>
                   <groupId>org.slf4j</groupId>
                </exclusion>
             </exclusions>
             <scope>provided</scope>
</dependency>


阅读更多
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页