Using @Headers with dynamic values in Feign client + Spring Cloud (Brixton RC2)
The solution is to use @RequestHeader annotation instead of feign specific annotations @FeignClient(name=”Simple-Gateway”) interface GatewayClient { @RequestMapping(method = RequestMethod.GET, value = “/gateway/test”) String getSessionId(@RequestHeader(“X-Auth-Token”) String token); }