zhangaijing opened a new issue #805:
URL: https://github.com/apache/servicecomb-service-center/issues/805
Servicecomb支持多文件上传不?
@PostMapping(value="batchUploadFile", consumes =
MediaType.MULTIPART_FORM_DATA)
@ApiOperation(value="批量上传文件")
public List<FileBO> batchUploadFile(@RequestPart("file") MultipartFile[]
multipartFileList) throws Exception{
return service.batchUploadFile(multipartFileList);
}
报错:
Caused by: com.alibaba.fastjson.JSONException: write javaBean error,
fastjson version 1.2.58, class
org.apache.servicecomb.swagger.invocation.converter.PartToMultipartFile,
fieldName : 0, write javaBean error, fastjson version 1.2.58, class
org.springframework.web.multipart.MultipartFileResource, fieldName : resource
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]