springboot同时接收json数据和 MultipartFile

首先测试接口发送方式。。。。。注意发送结构!

 后端接收@RequestPart

    @SaCheckPermission("system:records:add")
    @Log(title = "【用药纪录】", businessType = BusinessType.INSERT)
    @RepeatSubmit()
    @PostMapping()
    public R<Void> add( @RequestPart MedicationRecordsBo bo, MultipartFile file) {
        return toAjax(iMedicationRecordsService.insertByBo(bo,file));
    }

相关推荐

  1. 前端同时上传json对象MultipartFile文件

    2024-03-15 12:52:03       52 阅读
  2. springboot实现同时批量新增批量修改数据

    2024-03-15 12:52:03       37 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-03-15 12:52:03       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-03-15 12:52:03       100 阅读
  3. 在Django里面运行非项目文件

    2024-03-15 12:52:03       82 阅读
  4. Python语言-面向对象

    2024-03-15 12:52:03       91 阅读

热门阅读

  1. Docker使用及部署流程

    2024-03-15 12:52:03       37 阅读
  2. C++for语句

    2024-03-15 12:52:03       43 阅读
  3. 探索Python人工智能编程之道:从入门到实战

    2024-03-15 12:52:03       39 阅读
  4. docker日志在哪看?怎么在Linux服务器中查看日志

    2024-03-15 12:52:03       48 阅读
  5. Springboot参数分组校验

    2024-03-15 12:52:03       36 阅读
  6. 阿里云服务 安装 Docker

    2024-03-15 12:52:03       43 阅读