Exception in thread "main" java.lang.IllegalStateException: Logback configuration error detected: E

在跑spring cloud 项目时遇到个错误:

Exception in thread "main" java.lang.IllegalStateException:Logback configuration error detected:

ERROR in ch.qos.logback.core.joran.action.NestedBasicPropertyIA -Unexpected aggregationType AS_BASIC_PROPERTY_COLLECTION

查找后发现是logback的一个bug,在1.1.8版本后解决,因此升级logback版本到1.1.8版本之后,或者使用推荐的springcloud 的版本,此时logbak的版本是1.1.11:

<groupId>org.springframework.boot</groupId>

              <artifactId>spring-boot-starter-parent</artifactId>

              <version>1.5.6.RELEASE</version>

<relativePath /> <!--lookup parent from repository -->

       </parent>

<dependencyManagement>

      <dependencies>

         <dependency>

            <groupId>org.springframework.cloud</groupId>

            <artifactId>spring-cloud-dependencies</artifactId>

            <version>${spring-cloud.version}</version>

            <type>pom</type>

            <scope>import</scope>

         </dependency>

      </dependencies>

   </dependencyManagement>


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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值