Make it explicit that an optional prefix is needed for discovery first. Fixes #1897

This commit is contained in:
Ryan Baxter
2021-06-02 12:36:40 -04:00
committed by GitHub
parent 01f4d4785f
commit b1e795d8d1

View File

@@ -1514,7 +1514,7 @@ The net result of this behavior is that all client applications that want to con
[[discovery-first-bootstrap]]
==== Discovery First Lookup
WARNING: Unless you are using <<config-first-bootstrap, config first bootstrap>>, you will need to have a `spring.config.import` property in your configuration properties.
WARNING: Unless you are using <<config-first-bootstrap, config first bootstrap>>, you will need to have a `spring.config.import` property in your configuration properties with an `optional:` prefix.
For example, `spring.config.import=optional:configserver:`.
If you use a `DiscoveryClient` implementation, such as Spring Cloud Netflix and Eureka Service Discovery or Spring Cloud Consul, you can have the Config Server register with the Discovery Service.