Skip to content

Instantly share code, notes, and snippets.

@b1a9id
Created September 4, 2020 06:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save b1a9id/27fb717f92af1fc9766562fa513305a0 to your computer and use it in GitHub Desktop.
Save b1a9id/27fb717f92af1fc9766562fa513305a0 to your computer and use it in GitHub Desktop.
Spring Cloud OpenFeignサンプルのSakeClient.java
@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