Webflux上传文件时,需要通过FilePart接收文件
@PostMapping("/upload") public Mono<String> upload(@RequestPart("upload") FilePart upload){ File file = new File("E:\\temp\\upload.text"); return upload.transferTo(file).map(e->"success"); }