其他分享
首页 > 其他分享> > No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc

No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc

作者:互联网

p22 No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc出现这个问题是没有loadbalanc 但是nacos中ribbon会造成loadbalanc包失效 
在common的pom加入
<!-- nacos-->
<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>
<version>2.2.5.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-loadbalancer</artifactId>
<version>2.2.2.RELEASE</version>
</dependency>

https://www.bilibili.com/video/BV1np4y1C7Yf?p=22
评论区的答案

标签:Feign,forget,No,spring,starter,loadbalanc,cloud
来源: https://www.cnblogs.com/hongou/p/15309806.html