openFeign 远程调用失败 No Feign Client for loadBalancing defined.Did you forget to include spring-cloud-st
Posted 贝尔塔猫
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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”
<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的主要内容,如果未能解决你的问题,请参考以下文章
SpringCloud04_OpenFeign的概述(远程调用)基本使用超时控制日志打印功能
OpenFeign的远程调用使用HttpClient优化性能 及 最佳实践方式