简体   繁体   中英

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.

The guide I am using the following properties in 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. 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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