title: Feign Client + Eureka POST request body
body: <p>I'm trying to use Feign and Eureka to forward a post request from server A to server B. Both servers are discrovered sucessfully by Eureka.</p>
  
  <p>This works:</p>
  
  <pre><code>@Feignclient
  public interface MyFeignClient {
      @RequestMapping(value = "test", = RequestMethod.POST, consumes = "application/json")
      ResponseEntity&lt;String&gt; theActualMethod(
              HttpServletRequest request,
              @RequestHeader("firstHeader") String header1,
              @RequestHeader("secondHeader") byte[] header2);
  }
  </code></pre>
  
  <p>However, when I change the second argument to @RequestBody in order to read the POST request content, I get an exception:</p>
  
  <pre><code>java.lang.IllegalStateException: Method has too many Body parameters: public abstract org.springframework.http.ResponseEntity MyFeignClient.theActualMethod(javax.servlet.http.HttpServletRequest,java.lang.String,byte[])
  </code></pre>