@FeignClient("APP-PROVIDER")
public interface MyFeignClient {
@RequestMapping(value = "/user/{id}", method = RequestMethod.GET)
public User getUser(@PathVariable("id") Long id);
}
@FeignClient("APP-PROVIDER")
public interface MyFeignClient {
@RequestMapping(value = "/user/{id}", method = RequestMethod.GET)
public User getUser(@PathVariable("id") Long id);
}
转载于:https://www.cnblogs.com/liuys635/p/10548580.html