简体   繁体   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

I am currently trying to set up an GCP storage bucket with my Spring Boot webapp for adding/removing csv and jmx files.我目前正在尝试使用我的 Spring Boot webapp 设置一个 GCP 存储桶,用于添加/删除 csv 和 jmx 文件。

The guide I am using the following properties in application.yml :我在 application.yml 中使用以下属性的指南:

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

You can check their Spring Cloud GCP Storage Starter Example as a Starting Guide.您可以查看他们的Spring Cloud GCP Storage Starter Example作为入门指南。 If it doesn't help, providing more info would help us to help you!如果没有帮助,提供更多信息将有助于我们为您提供帮助!

eg: the error you are getting, a sample of your project, stack trace, etc例如:您收到的错误、您的项目示例、堆栈跟踪等

暂无
暂无

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

相关问题 Spring Boot - 从 application.yml 和 application.properties 注入 - Spring Boot - inject from application.yml and application.properties Spring Boot application.yml和application.properties - Spring Boot application.yml and application.properties Spring Boot - 如何将 application.yml 属性定义为 application.properties - Spring Boot - How to define application.yml properties as application.properties 根据application.yml的属性注入Spring Boot - Inject with Spring Boot depending on properties from application.yml "'application.yml' 中的 Spring Boot 属性未从 JUnit 测试加载" - Spring Boot properties in 'application.yml' not loading from JUnit Test Spring 引导 2 忽略在 application.yml 中设置的 HikariCP 属性 - Spring Boot 2 is ignoring HikariCP properties set in application.yml 如何从 spring-boot 应用程序中的 application.yml 文件中读取属性 - How to read properties from application.yml file in spring-boot application 如何在 Spring Boot 中从 application.properties 转换为 application.yml? - How to convert from application.properties to application.yml in Spring Boot? Spring Boot - 如何通过实现 BeforeAllCallback 的自定义扩展类设置或覆盖 application.yml 中定义的属性? - Spring Boot - How to set or override properties defined in application.yml via a custom extension class that implements BeforeAllCallback? 如何将 application.yml 中的 map 注入 Spring 引导中的字段? - How to inject a map from application.yml into a field in Spring Boot?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM