首页 > 数据库技术 > 详细

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

时间:2021-09-21 20:59:16      阅读:65      评论:0      收藏:0      [点我收藏+]
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
评论区的答案

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

原文:https://www.cnblogs.com/hongou/p/15309806.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!