package pl.java.scalatech.sample.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import lombok.RequiredArgsConstructor;

@RestController
@RequiredArgsConstructor
public class SampleFeignClientController {
    
    private GreetingFeignResource greetingFeignResource;
    
    @GetMapping("/feignTest/{name}")
    String getTest(@PathVariable String name){
      return greetingFeignResource.getMessage(name);   
    }
}

@@ -35,24 +35,87 @@
 ontroller;%0A%0A
+import org.springframework.beans.factory.annotation.Autowired;%0A
 import org.s
@@ -297,80 +297,71 @@
 ort 
-lombok.RequiredArgsConstructor;%0A%0A@RestController%0A@RequiredArgsConstructo
+pl.java.scalatech.config.GreetingFeignResource;%0A%0A@RestControlle
 r%0Apu
@@ -401,24 +401,34 @@
 oller %7B%0A    
+@Autowired
 %0A    private
@@ -624,10 +624,135 @@
  %0A    %7D%0A
+    @GetMapping(%22/feignTest2/%7Bname%7D%22)%0A    String getTest2()%7B%0A      return greetingFeignResource.getMessageNoName();   %0A    %7D%0A
 %7D%0A

Update SampleFeignClientController.java