Skip to content

Instantly share code, notes, and snippets.


b1a9id/ Secret

Created Sep 4, 2020
What would you like to do?
Spring Cloud OpenFeignサンプルの
public class SakeController {
final SakeClient sakeClient;
public SakeController(SakeClient sakeClient) {
this.sakeClient = sakeClient;
public List<SakeResponse> list() {
return sakeClient.list();
public SakeResponse get(@PathVariable Integer id) {
return sakeClient.get(id);
public SakeResponse create() {
return sakeClient.create(new SakeCreateRequest("寫樂", "宮泉銘醸"));
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.