提交 51c43955 作者: 方治民

fix: 修复 MultipartFile putObject 没有关闭流的使用问题

上级 d29cb695
......@@ -127,7 +127,9 @@ public record Minio(MinioConfig config, MinioClient client) {
object = folder + "/" + object;
}
return putObject(file.getInputStream(), file.getContentType(), object);
@Cleanup
InputStream inputStream = file.getInputStream();
return putObject(inputStream, file.getContentType(), object);
}
/**
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论