Skip to content

Instantly share code, notes, and snippets.

@b1a9id

b1a9id/SakeClient.java Secret

Created Sep 4, 2020
Embed
What would you like to do?
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
You can’t perform that action at this time.