Spring Cloud 用于Google Cloud Storage的通道适配器
2024-01-10 14:26 更新
Google Cloud Storage的通道适配器可让您通过MessageChannels读写文件到Google Cloud Storage。
Spring Cloud GCP提供了两个入站适配器GcsInboundFileSynchronizingMessageSource和GcsStreamingMessageSource,以及一个出站适配器GcsMessageHandler。
spring-cloud-gcp-storage模块中包含用于Google Cloud Storage的Spring Integration通道适配器。
要为Spring Cloud GCP使用Spring Integration的存储部分,还必须提供spring-integration-file依赖项,因为它不是可传递的。
Maven坐标,使用Spring Cloud GCP BOM:
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-gcp-storage</artifactId> </dependency> <dependency> <groupId>org.springframework.integration</groupId> <artifactId>spring-integration-file</artifactId> </dependency>
Gradle坐标:
dependencies {
compile group: 'org.springframework.cloud', name: 'spring-cloud-gcp-starter-storage'
compile group: 'org.springframework.integration', name: 'spring-integration-file'
}以上内容是否对您有帮助:

免费 AI IDE


更多建议: