作者:施自扬
微信号:sszzyy123aabbcc

postman+springboot多张图片以参数形式传入接口

使用背景

利用postman请求接口,如何将多张图片,以参数形式传入接口。使用form表单上传

教程

postman中参数整理方法如图:
postman+springboot多张图片以参数形式(form表单)传入接口
controller层写法:使用@Valid注解,因为是form表单传参,不可以使用@RequestBody注解。
postman+springboot多张图片以参数形式(form表单)传入接口
参数类的写法:参数上一定要加@JsonIgnore注解
postman+springboot多张图片以参数形式(form表单)传入接口

相关文章:

  • 2021-11-25
  • 2022-12-23
  • 2021-04-30
  • 2021-06-30
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2021-08-14
猜你喜欢
  • 2021-10-30
  • 2022-01-13
  • 2021-09-23
  • 2021-05-31
  • 2021-08-14
  • 2021-12-28
相关资源
相似解决方案