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");
}
标签:文件,file,Webflux,upload,File,上传
From: https://www.cnblogs.com/walkAlwaysInCode/p/17382764.html