簡體   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