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

Distributed configuration

Configuration management with Zookeeper is pretty similar to that described for Spring Cloud Consul Config. By default, all the property sources are stored in the /config folder (or znode in Zookeeper nomenclature). Let me point it out one more time. Assuming we have the spring.application.name property set to order-service in the bootstrap.yml file, and the spring.profiles.active running argument set to zone1, it tries to locate the property sources in the following order: config/order-service,zone1/, config/order-service/, config/application,zone1/, config/application/. Properties stored in the folder with the prefix config/application in the namespace are available for all applications that use Zookeeper for distributed ...

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