将CSV文件从Spring批处理写入GCP存储

我想使用Spring批处理在GCP存储中写入csv文件,可以看到在通过Batch创建CSV文件后,我们可以上传该文件,

但是有什么方法可以将文件直接从Spring Batch写入GCP存储

love14521 回答:将CSV文件从Spring批处理写入GCP存储

这类似于有关直接写入Amazon S3的问题:spring batch file writer to write directly to amazon s3 storage without PutObjectRequest

您可以尝试使用Spring Cloud GCP并编写一个自定义编写器,如下例所示:https://stackoverflow.com/a/54947585/5019386

本文链接:https://www.f2er.com/3108079.html

大家都在问