Skip to Content
Mastering Spring Cloud
book

Mastering Spring Cloud

by Piotr Mińkowski
April 2018
Intermediate to advanced content levelIntermediate to advanced
432 pages
10h 38m
English
Packt Publishing
Content preview from Mastering Spring Cloud

Integration with Spring Cloud Config

As I have mentioned before, we have to run the Spring Cloud Config Server with the --spring.profiles.active=vault parameter to enable Vault as a backend store. To override the default auto configured settings, we should define the properties under the spring.cloud.config.server.vault.* key. The current configuration for our example application is shown here. An example application is available on GitHub; you need to switch to the config_vault branch (https://github.com/piomin/sample-spring-cloud-netflix/tree/config_vault) to access it:

spring: application:   name: config-server cloud:   config:     server:       vault:         host: 192.168.99.100         port: 8200

Now, you may call the endpoint exposed by the Config Server. You have ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microservices with Spring Boot and Spring Cloud - Second Edition

Microservices with Spring Boot and Spring Cloud - Second Edition

Magnus Larsson

Publisher Resources

ISBN: 9781788475433Supplemental Content