【发布时间】:2021-09-07 21:30:30
【问题描述】:
我们在 azure blob 容器中创建了一些文件夹结构,我们希望将一些文件从骆驼路由上传到这个 blob 存储。
当我们尝试指定 file-dir 参数时,它没有正确更新它,但是如果我们在 blob 名称中指定值,那么它会将文件上传到正确的文件夹中。
如果我们在 file-dir 参数中提到该文件夹,您能否帮我解释为什么它不起作用
不工作:
.to("azure-storage-blob://account1/container1?blobName=file1.txt& fileDir=/folder1&operation=uploadBlockBlob")
工作:
.to("azure-storage-blob://account1/container1?blobName=folder1/file1.txt&operation=uploadBlockBlob")
依赖:
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-spring-boot-starter</artifactId>
<version>3.5.0</version>
</dependency>
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-azure-storage-blob-starter</artifactId>
<version>3.5.0</version>
</dependency>
【问题讨论】:
-
你用的是什么版本的骆驼?
-
org.apache.camel.springboot camel-spring-boot-starter 3.5.0 org.apache.camel.springboot camel-azure-storage-blob-starter 3.5.0 -
3.10.0 或 3.11.0 即将发布时试用
-
感谢@ClausIbsen。我试过 3.10.0 。但是遇到同样的问题。将在 3.11.0 发布时尝试。
-
嗨@ClausIbsen 我刚刚尝试了3.11.0,但我仍然遇到同样的问题。只是想检查一下,如果 fileDir 选项是为此目的(用于生产者)而设计的,正如描述所说的那样,它用于存储下载的文件
标签: java spring-boot apache-camel azure-blob-storage