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 ...

Get Mastering Spring Cloud now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.