@ApiOperation(value = "批量上传文件")
@RequestMapping(value = "uploadBatch", method = RequestMethod.POST)
public String fileUpload(@RequestParam("file") MultipartFile[] files){
for(MultipartFile multipartFile:files){
log.info(multipartFile.getOriginalFilename());
}
return "success";
}
测试方法:重点的参数已经圈出来了
image.png image.png
网友评论