Adds addLabelLocations option to ConfigServerProperties (#681)

Adds addLabelLocations option to server properties.
Also eliminates any duplicate locations.

Fixes gh-676
This commit is contained in:
Venil Noronha
2017-05-19 15:13:02 -07:00
committed by Spencer Gibb
parent 3135d97475
commit d9113a417d
4 changed files with 56 additions and 11 deletions

View File

@@ -479,8 +479,9 @@ on the search path, so properties files are loaded from each search
location *and* a subdirectory with the same name as the label (the
labelled properties take precedence in the Spring Environment). Thus
the default behaviour with no placeholders is the same as adding a
search location ending with `/{label}/. For example `file:/tmp/config`
is the same as `file:/tmp/config,file:/tmp/config/{label}`
search location ending with `/{label}/`. For example `file:/tmp/config`
is the same as `file:/tmp/config,file:/tmp/config/{label}`. This behavior can be
disabled by setting `spring.cloud.config.server.native.addLabelLocations=false`.
==== Vault Backend