I am little new to Spring boot and I am using Feign Rest client to talk to my web service. But I'm getting my URL double and cannot invoke the intended service.
@FeignClient(name= "exchange-service", url="localhost:8000")
public interface ExchangeServiceProxy {
@GetMapping
@RequestMapping(value = "/exchange/from/{from}/to/{to}")
public ExchangeBean retrieveExchangeValue(@PathVariable("from") String from,
@PathVariable("to") String to);
}
status 404 reading
ExchangeServiceProxy#retrieveExchangeValue(String,String); content:
{"timestamp":"2018-11-22T05:50:45.822+0000","status":404,"error":"Not
Found","message":"No message
available","path":"/exchange/from/USD/to/XYZ/exchange/from/USD/to/XYZ"}