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云端存储上创建文件和存储桶

No

true

spring.cloud.gcp.storage.credentials.location

OAuth2用于与Google Cloud Storage API进行身份验证的凭据(如果与Spring Cloud GCP核心模块中的凭据不同)

No

 

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

用于与Google Cloud Storage API进行身份验证的OAuth2帐户私钥的Base64编码内容(如果与Spring Cloud GCP核心模块中的内容不同)

No

 

spring.cloud.gcp.storage.credentials.scopes

Spring Cloud GCP存储凭据的OAuth2范围 35 /} GCP存储凭据的OAuth2范围

No

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


以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号