繁体   English   中英

如何在 spring boot 中的 application.yml 中添加 GCP (Google Cloud Storage) 存储属性

[英]How to add the GCP (Google Cloud Storage) storage properties in application.yml in spring boot

我目前正在尝试使用我的 Spring Boot webapp 设置一个 GCP 存储桶,用于添加/删除 csv 和 jmx 文件。

我在 application.yml 中使用以下属性的指南:

gcpProperties:
  gcs:
    bucket:
      name: dpaas-assets
      scripts: gs://assets/jmeter-scripts/
      resources: gs://assets/resources/

您可以查看他们的Spring Cloud GCP Storage Starter Example作为入门指南。 如果没有帮助,提供更多信息将有助于我们为您提供帮助!

例如:您收到的错误、您的项目示例、堆栈跟踪等

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM