问题描述
我应该伪装一个请求,它有两个requestpart,一个文件,另一个是对象。
@PostMapping(value = "/material/communication",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
MaterialResponseDTO postCommunicationMaterial(@RequestPart("file") MultipartFile file,@RequestPart("materialJSON") MaterialTitle materialJSON);
错误:
feign.FeignException$InternalServerError: [500] during [POST] to [http://communication-service/material/communication] [CommunicationFeign#postCommunicationMaterial(MultipartFile,MaterialTitle)]: [Required request part 'materialJSON' is not present]
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)