一、调用方 Client
1. 创建Springboot项目,并注册到服务注册中心
2. 应用OpenFeign依赖
3. 启动类添加注解 @EnableFeignClients
4. 创建接口 + @FeignClient("服务方,注册中心名") + 服务方提供的方法
5. 调用方使用
5.1 注入接口对象+@Autowired
5.2 接口对象名.方法名()
二、服务方 Service
1. 提供controller层的访问方法
2. 入参:如果是对象需要提供
3. 出参:如果是对象需要提供
标签:服务,OpenFeign,对象,提供,接口,注册,使用 From: https://www.cnblogs.com/Life-QX/p/16808339.html