W3Cschool
恭喜您成為首批注冊用戶
獲得88經(jīng)驗值獎勵
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' }
Copyright©2021 w3cschool編程獅|閩ICP備15016281號-3|閩公網(wǎng)安備35020302033924號
違法和不良信息舉報電話:173-0602-2364|舉報郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號
聯(lián)系方式:
更多建議: