Add label/ prefix to properties files in the "native" profile

This allows user s to separate their native resources by label, e.g.
/config/master/*.properties, /config/dev/*.properties etc.
This commit is contained in:
Dave Syer
2014-12-18 16:49:52 +00:00
parent fade46210e
commit b29b492817
5 changed files with 47 additions and 14 deletions

View File

@@ -39,10 +39,11 @@ Git, but just loads the config files from the local classpath (or
anywhere else you want to point to with
"spring.cloud.config.server.locations"). To use the native profile
just launch the Config Server with "spring.profiles.active=native". In
the native profile the repository only has the "current" set of
configuration files, so the "label" specification in the HTTP
resources is ignored (i.e. it's like always pulling from "master" in
the Git implementation).
the native profile the repository the "label" specification in the
HTTP resources is added to 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).
=== Security