org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'circleBreakerController': Unsatisfied dependency expressed through field 'paymentService'; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'com.example.cloudalibabaconsumernacosorder84.service.PaymentService': Requested bean is currently in creation: Is there an unresolvable circular reference?
在Sentinel整合OpenFeign发生spring循环注入,原因是spring cloud alibaba与spring cloud版本兼容性的问题。
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
<version>2021.1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
把spring cloud alibaba升级为2021.1版本解决问题