当前位置: 代码迷 >> 综合 >> 运行springboot项目 出现 Failed to instantiate [ch.qos.logback.classic.LoggerContext]的问题
  详细解决方案

运行springboot项目 出现 Failed to instantiate [ch.qos.logback.classic.LoggerContext]的问题

热度:38   发布时间:2023-12-18 10:13:34.0

依赖版本与jdk版本不兼容导致
出现问题时,我项目中的依赖版本为

<dependency><groupId>org.slf4j</groupId><artifactId>slf4j-api</artifactId><version>1.7.25</version></dependency><dependency><groupId>ch.qos.logback</groupId><artifactId>logback-classic</artifactId><version>1.0.9</version>
</dependency>

解决方法:
更改依赖

<dependency><groupId>org.slf4j</groupId><artifactId>slf4j-api</artifactId><version>1.7.25</version></dependency><dependency><groupId>ch.qos.logback</groupId><artifactId>logback-classic</artifactId><version>1.1.11</version>
</dependency>
  相关解决方案