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

Client customization

The Consul Config client may be customized with the following properties, which are prefixed with spring.cloud.consul.config:

  • enabled: By setting this property to false, you may disable Consul Config. It is useful if you include spring-cloud-starter-consul-all, which enables both discovery and distributed configuration.
  • fail-fast: This sets whether to throw exceptions during configuration lookup or log warnings in case of connection failure. Setting it to true allows the application to continue startup normally.
  • prefix: This sets the base folder for all the configuration values. By default, it is /config.
  • defaultContext: This sets the folder name used by all applications that do not have a specific configuration. By ...
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