首先,Feign是什莫? 简单说就是: 之前是ribbon+restTemplate实现负载均衡+服务调用,现在直接使用Feign即可,因为Feign内部集成了Ribbon,所以Feign也具有客户端的负载均衡功能,Feign通过注解实现服务的远程调用。 feign集成了ribbon: