本文主要是介绍openFeign 远程调用失败 No Feign Client for loadBalancing defined.Did you forget to include spring-cloud-st,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
openFeign 远程调用失败,提示 “No Feign Client for loadBalancing defined.Did you forget to include
spring-cloud-starter-loadbalance”
https://blog.csdn.net/qq_43416157/article/details/114318283
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-ribbon</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-loadbalancer</artifactId>
<version>2.2.1.RELEASE</version>
</dependency>
这篇关于openFeign 远程调用失败 No Feign Client for loadBalancing defined.Did you forget to include spring-cloud-st的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!