📜  Feign 客户端 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:25.355000             🧑  作者: Mango

代码示例2
@FeignClient("stores")
public interface StoreClient {
    @RequestMapping(method = RequestMethod.GET, value = "/stores")
    List getStores();

    @RequestMapping(method = RequestMethod.POST, value = "/stores/{storeId}", consumes = "application/json")
    Store update(@PathVariable("storeId") Long storeId, Store store);
}