单个文件上传的写法:

@RequestParam MultipartFile pictures

多个文件上传的写法:

@RequestPart(“img”) MultipartFile[] pictures

如果遇到swaggerUI上没有上传文件按钮,修改接口注解为:Swagger UI文件上传

相关文章:

  • 2022-12-23
  • 2021-07-03
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2021-09-14
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-13
  • 2022-02-26
  • 2022-12-23
  • 2022-02-21
  • 2022-12-23
  • 2021-12-23
相关资源
相似解决方案