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>

 

 

上一篇:18.SpringCloud实战项目- 整合OpenFeign实现声明式远程调用


下一篇:OpenFeign源码分析