Knife4j 4.5.0
@RequestParam
改用@RequestPart
即可
@Operation(summary = "上傳檔案")
@PostMapping("upload")
public Result<String> upload(@RequestPart MultipartFile file) throws Exception {
String url = fileService.upload(file);
return Result.ok(url);
}