Feign Client + Eureka POST request body

The problem was that a method in Feign interface cannot have more than one 'general' argument. you can have as many header arguments as you want but not more than one as body. Since @RequestBody doesn't do anything it is regarded not as a header but as another variable in addition to the HttpServletRequest request variable.

So I had to change my business logic to have only one parameter.


For me, the issue was that I used @Param (as in feign.Param) instead of @RequestParam (as in org.springframework.web.bind.annotation.RequestParam). Changing all @Param to @RequestParam solved it for me.

I Don't know why this is but a related question on Feign's repository might explain a little.