4
我得到的錯誤: 試圖生成一個春天假死客戶端時,「方法有太多的身體參數」 我可以使用Multipart參數生成Spring Feign客戶端嗎?
@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);
我發現下面的解決方案,使用常規的假死註釋的時候,而不是與工作Spring MVC的註解:
'Too many body parameters' Exception on Feign Client
現在不行,不行。 – spencergibb