Skip to content

Latest commit

 

History

History
7 lines (6 loc) · 528 Bytes

springCloud.md

File metadata and controls

7 lines (6 loc) · 528 Bytes

返回首页

声明式服务调用Feign

由于各个服务提供者都是以HTTP接口的形式对外提供服务,因此在服务消费者调用服务提供者时, 我们可以使用JDK原生的URLConnectionApacheHTTP ClientSpringRestTemplate等方式去实现服务间的调用。 但一般情况下,我们会使用Feign去进行服用间的调用。

Spring CloudFeign进行了增强,使Feign支持Spring MVC的注解,并整合了Ribbon(负载均衡)