后端上传文件@RequestParam接收不到参数

在做文件上传功能时,使用@RequestParam接收form-data表单数据,接收不到参数和文件。
但是第一次请求是成功的,第二次开始就接收不到,打断点,查看参数全都为null,重启系统后的第一次都能请求成功。
用的是spring-boot,以本人有限的知识只能往tomcat的nio方向猜测有什么配置不对。希望被拯救一波。

@RequestMapping("/upload")
public void uploadFile(@RequestPart(name = "uploadfile", required = false) MultipartFile uploadfile,
                             @RequestPart(name = "filePath", required = false) String filePath,
                             @RequestPart(name = "fileName", required = false) String fileName, HttpServletRequest request) {
    if (StringUtils.isBlank(filePath) || StringUtils.isBlank(fileName)) {
        log.error("未获取到路径或文件名");
          return;
    }
    File file = new File(filePath + File.separator + fileName);
    try {
        file.createNewFile();
    } catch (IOException e) {
        log.error("create file error", e);
        return JsonResult.error();
    }
    FileUtils.uploadFile(uploadfile, file);
}

补充:顺便说一下,是用postman测试的,form-data格式,第一次可以,第二次就不行,重启系统后第一次又可以,接下来就不行了

img

postman传参截图发出来