记得看别人都说是2.7.2里面已经解决了,我现在用的2.7.3,spring
cloud+dubbo调用feign的时候,添加了@Lazy才正常,关键之前没加这个也没问题
@Resource
@Lazy
CompleteFeignService completeFeignService;
<dependencyManagement>
<dependencies>
<!--
https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-dependencies
-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Greenwich.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<!-- Import dependency management from Spring Boot -->
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>2.1.6.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-dependencies-bom</artifactId>
<version>2.7.3</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
[ Full content available at:
https://github.com/apache/dubbo-spring-boot-project/issues/608 ]
This message was relayed via gitbox.apache.org for
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]