-
-
Save b1a9id/27fb717f92af1fc9766562fa513305a0 to your computer and use it in GitHub Desktop.
Spring Cloud OpenFeignサンプルのSakeClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@FeignClient(value = "sakes", url = "${producer.url}") | |
public interface SakeClient { | |
@GetMapping(value = "/sakes") | |
List<SakeResponse> list(); | |
@GetMapping(value = "/sakes/{id}") | |
SakeResponse get(@PathVariable Integer id); | |
@PostMapping(value = "/sakes") | |
SakeResponse create(SakeCreateRequest request); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment