事情是这样的,在打印日志的时候,springboot启动器 starter-logging由以来传递的版本是1.2.9,这时候打印日志会报错,错误日志如下;
-ERROR in ch.qos.logback.core.joran.action.AppenderAction - Could not create an Appender of type [ch.qos.logback.classic.db.DBAppender]. ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type ch.qos.logback.classic.db.DBAppender
at ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type ch.qos.logback.classic.db.DBAppender
at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:69)
看了下网上的一些答案,各种各样的答案,
当我导入以下这两个以来的时候
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.2.3</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>1.2.3</version>
</dependency>
正常打印,发现是1.2.9和1.2.3之间的区别导致的;
那1.2.9新版本的怎么用呢?
不太清楚,还请给予一下帮助;谢谢