I am getting the error: "Method has too many Body parameters" when trying to generate a Spring Feign client
@RequestMapping(value="/media", method=RequestMethod.POST)
String uploadMedia(@RequestHeader("Authentication") String token,
@RequestPart("media") MultipartFile audio,
@RequestPart("a-json-object") SomeClass someClazz,
@RequestPart("another-json-object") AnotherClass anotherClazz);
I found the following solution, which works when using regular Feign annotations, but not with Spring MVC annotations: