seata ,Requested bean is currently in creation: Is there an unresolvable circular reference?

Blade 未结 2 954
cmsx
cmsx 剑圣 2021-06-24 21:01
悬赏:10

一、该问题的重现步骤是什么?

1. bladex-biz工程引入 

<dependency>
    <groupId>org.springblade</groupId>
    <artifactId>blade-starter-transaction</artifactId>
</dependency>

2. 在不clean 的情况下 修改 项目内容(

TestFlowServiceImpl

) 重新运行 报错

 Requested bean is currently in creation: Is there an unresolvable circular reference?


每次都需要clean一下 才能重新运行。



单独引用seata 不会有这个问题

<!--<dependency>-->
   <!--<groupId>com.alibaba.cloud</groupId>-->
   <!--<artifactId>spring-cloud-starter-alibaba-seata</artifactId>-->
<!--</dependency>-->
<!--<dependency>-->
   <!--<groupId>io.seata</groupId>-->
   <!--<artifactId>seata-spring-boot-starter</artifactId>-->
<!--</dependency>-->


二、你期待的结果是什么?实际看到的又是什么?


三、你正在使用的是什么产品,什么版本?在什么操作系统上?

2.8.1   window

四、请提供详细的错误堆栈信息,这很重要。


所以的feign都会报错(包括 Bladex-Tool 中的feign)

Error creating bean with name 'com.springblade.testflow.feign.IDeleteRoleAndParamClient': Requested bean is currently in creation: Is there an unresolvable circular reference?


五、若有更多详细信息,请在下面提供。

2条回答
  • 2021-06-24 23:05

    我测试了一下biz工程的blade-demo,没有这个问题啊,还是说只有你自己创建的服务有这种情况。具体见下图

    image.png

    1 讨论(0)
  • 2021-06-25 08:43
      @ComponentScan 没配好 尴尬
    1 讨论(0)
提交回复