java.lang.IllegalStateException: Logback configuration error detected解决方案

在将SpringBoot、SpringCloud和SpringCloud-Alibaba升级到特定版本后,项目启动报出Logback配置错误,具体涉及FileAppender的冲突。错误信息表明File选项值重复。参考GitHub上的issue,问题可能源于Nacos-client的版本。解决方案是将nacos-client升级到2.2.1,此操作解决了上述问题。
摘要由CSDN通过智能技术生成

升级项目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 后就无此问题了

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值