Spring @FeignClient

使用Spring Cloud搭建各类微服务以后,服务能够经过@FeignClient使用和发现服务场中的其余服务。 仍是以Config Server和Config Client为例,这是服务场中的注册的两个微服务。 Config Server中定义了两个服务接口(一个Post、一个Get方法) package demo.controller; import org.springframework
相关文章
相关标签/搜索