引入openfeign时报No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalancer错误
原因:由于SpringCloud Feign高版本不使用Ribbon而是使用spring-cloud-loadbalancer,所以需要引用spring-cloud-loadbalancer或者降版本
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-loadbalancer</artifactId>
</dependency>
网友评论