Closed toadornode closed 5 months ago
Okay, I figured out the issue... You have to use the built in headers as part of the RequestMapping.
@RequestMapping(method = RequestMethod.GET, value = "/test", consumes="application/json",
headers = "test=someVal")
I guess I was referencing a different Feign Client implementation... kind of confusing https://www.baeldung.com/intro-to-feign
It might be worth adding a header example in the documentation: https://cloud.spring.io/spring-cloud-openfeign/reference/html/
Hello @toadornode, yes, we do not recommend mixing the Spring Cloud OpenFeign and native Feign annotations on one method.
I'm not sure what I'm doing wrong here.
I've included spring cloud open feign dependency
Then in my feign client interface
Yet, the header does not get sent.
If I make the implementation like the following then it gets sent