@FeignClient

 

 

@FeignClient("APP-PROVIDER")
public interface MyFeignClient {
@RequestMapping(value = "/user/{id}", method = RequestMethod.GET)
public User getUser(@PathVariable("id") Long id);
}

猜你喜欢

转载自www.cnblogs.com/liuys635/p/10548580.html
0条评论
添加一条新回复