Spring Cloud GCP Spring 配置

2024-01-09 17:59 更新

Google云端存儲Spring Boot入門版提供以下配置選項:

Name

描述

Required

Default value

spring.cloud.gcp.storage.enabled

啟用GCP存儲API。

No

true

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

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

No

true

spring.cloud.gcp.storage.credentials.location

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

No

 

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

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

No

 

spring.cloud.gcp.storage.credentials.scopes

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

No

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


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

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號