Question: i created thi way package com.example.Employee.feignclients; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import com.example.Employee.response.AddressResponse; @FeignClient ( name = address - feign - client,url =

i created thi way package com.example.Employee.feignclients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import com.example.Employee.response.AddressResponse;
@FeignClient(name = "address-feign-client",url ="${address.service.url}", path ="/api/address")
public interface AddressFeignClient {
@GetMapping("/getById/{id}")
public AddressResponse getById (@PathVariable long id);
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!