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;
@FeignClientname "addressfeignclient",url $addressservice.url path apiaddress
public interface AddressFeignClient
@GetMappinggetByIdid
public AddressResponse getById @PathVariable long id;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
