接收表单使用对象接收时不要使用注解
/*** 单文件上传(微信小程序只支持单文件上传)** @param file* @return* @throws Exception*/@PostMapping("/filesUpload")public R uploadFile(FormDataReq f, @RequestParam("file") MultipartFile file, @RequestParam(name = "businessType", required = true) String businessType) {return R.ok("文件上传成功!", fileService.uploadPic(file, businessType));}