Open-Feign 负载均衡组件
作者:互联网
依赖:
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>
open-feign集成rabbon
采用注解进行配置,对熔断等方式进行配置
启动类添加注解:@EnableFeignClients
客户端调用方法添加:@FeignClient注解,
告诉服务器这是客户端发送的请求
@FeignClient(name="名称与nacos保持一致")
标签:FeignClient,Feign,feign,添加,组件,注解,Open,cloud,客户端 来源: https://www.cnblogs.com/xmcode/p/15799738.html