提交请求的contentType为multipart/form-data

图片提交在form中的名称为file

后端接收示例

    @RequestMapping("/picture")
    public String picture(@RequestParam Map<String,String> map, @RequestParam("file")MultipartFile uploadImage){
        //uploadImage接收图片
        //map接收其他字段
        ....
    }

相关文章:

  • 2021-06-17
  • 2021-10-02
  • 2021-08-18
  • 2022-12-23
  • 2021-08-25
  • 2022-01-11
  • 2021-12-19
猜你喜欢
  • 2022-12-23
  • 2021-08-13
  • 2021-09-21
  • 2022-12-23
  • 2021-08-25
  • 2021-09-29
  • 2021-07-14
相关资源
相似解决方案