@@ -0,0 +1,947 @@
+package pl.java.scalatech.config;%0A%0Aimport org.springframework.cloud.netflix.feign.FeignClient;%0Aimport org.springframework.stereotype.Component;%0Aimport org.springframework.web.bind.annotation.PathVariable;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RequestMethod;%0A%0Aimport feign.Headers;%0A@FeignClient(name=%22greeting%22)%0A@Component%0Apublic interface GreetingFeignResource %7B%0A    %0A    @RequestMapping(method = RequestMethod.GET, value = %22/message/sean%22)%0A    String getMessageNoName();%0A    %0A    @RequestMapping(method = RequestMethod.GET, value = %22/message/%7Bname%7D%22)%0A    String getMessage(@PathVariable(%22name%22) String name);%0A%0A    @Headers(%22Content-Type: application/json%22)%0A    @RequestMapping(method = RequestMethod.POST, value = %22/message/%7BnewGreeting%7D%22)%0A    void updateMessage(@PathVariable(%22newGreeting%22) String message);%0A    %0A%7D%0A//client -%3E greeting.ribbon.listOfServers: localhost:9000%0A

Create GreetingFeignResource.java