I am trying to get data from external service and put the in database.
@FeignClient(value = "name-feign", url = "http://localhost:8081")
public interface Client{
@PostMapping("/Efforts")
List<EffortsResponse> getAllEfforts();
}
I added @EnableFeignClients annotation on my app. I know what feign client do.
what is the best way to do it?