Spring Cloud GCP Spring 配置

2024-01-09 17:59 更新

Google云端存儲(chǔ)Spring Boot入門(mén)版提供以下配置選項(xiàng):

Name

描述

Required

Default value

spring.cloud.gcp.storage.enabled

啟用GCP存儲(chǔ)API。

No

true

spring.cloud.gcp.storage.auto-create-files

寫(xiě)入不存在的文件時(shí),在Google云端存儲(chǔ)上創(chuàng)建文件和存儲(chǔ)桶

No

true

spring.cloud.gcp.storage.credentials.location

OAuth2用于與Google Cloud Storage API進(jìn)行身份驗(yàn)證的憑據(jù)(如果與Spring Cloud GCP核心模塊中的憑據(jù)不同)

No

 

spring.cloud.gcp.storage.credentials.encoded-key

用于與Google Cloud Storage API進(jìn)行身份驗(yàn)證的OAuth2帳戶私鑰的Base64編碼內(nèi)容(如果與Spring Cloud GCP核心模塊中的內(nèi)容不同)

No

 

spring.cloud.gcp.storage.credentials.scopes

Spring Cloud GCP存儲(chǔ)憑據(jù)的OAuth2范圍 35 /} GCP存儲(chǔ)憑據(jù)的OAuth2范圍

No

https://www.googleapis.com/auth/devstorage.read_write


以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)