0.简介
1.想要远程调用服务
1.1 引入openfeign依赖
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
<version>2.1.3.RELEASE</version>
</dependency>
1.2 编写一个接口,告诉SpringCloud这个接口需要远程调用服务
1、声明接口的每一个方法都是调用哪个远程服务的那个请求
2、开启远程调用功能
@EnableFeignClients(basePackages = “com.atguigu.gulimall.member.feign”)