@PostMapping(value = "/upload-file", consumes = "multipart/*", headers = "content-type=multipart/form-data")
@ApiOperation(value = "上传文件")
@ApiImplicitParams({
@ApiImplicitParam(paramType = "form", name = "file", value = "文件", required = true, dataType = "__file"),})
public File upload(MultipartFile file) {
}
【java】swagger传文件报Required request part ‘file‘ is not present
最新推荐文章于 2024-01-26 17:42:32 发布