升级项目springboot,springcloud,springcloud-alibaba到如下版本后
<springboot.version>2.3.12.RELEASE</springboot.version>
<spring-cloud.version>Hoxton.SR12</spring-cloud.version>
<spring-cloud-alibaba.version>2.2.9.RELEASE</spring-cloud-alibaba.version>
项目启动报如下错误:
java.lang.IllegalStateException: Logback configuration error detected:
ERROR in ch.qos.logback.core.rolling.RollingFileAppender[CONFIG_LOG_FILE] - 'File' option has the same value "C:\Users\test\logs/nacos/config.log" as that given for appender [CONFIG_LOG_FILE] defined earlier.
ERROR in ch.qos.logback.core.rolling.RollingFileAppender[CONFIG_LOG_FILE] - Collisions detected with FileAppender/RollingAppender instances defined earlier. Aborting.
网上查询,在https://github.com/alibaba/nacos/issues/8505 中说可能是nacos-client版本问题
升级nacos-client版本到 2.2.1 后就无此问题了