diff --git a/spring-cloud.html b/spring-cloud.html index 500ae6c..61133cb 100644 --- a/spring-cloud.html +++ b/spring-cloud.html @@ -1377,37 +1377,22 @@ repositories:
git: uri: https://github.com/spring-cloud-samples/config-repo repos: - simple: https://github.com/simple/config-repo + simple: https://github.com/pattern1/config-repo special: pattern: pattern*,*pattern1* - uri: https://github.com/special/config-repo + uri: https://github.com/pattern2/config-repo local: pattern: local* uri: file:/home/configsvc/config-repoIn the above example, if {application} does not match any of the
+
In the above example, if {application} does not match to any of the patterns, it will use the default uri defined under "spring.cloud.config.server.git.uri". For the "simple" repository, the -pattern is "simple" (i.e. it only matches one application named "simple"). -The pattern format is a comma-separated list of application names with -wildcards (a pattern beginning with a wildcard may need to be quoted).
-|
- Note
- |
--the "one-liner" short cut used in the "simple" example above can -only be used if the only property to be set is the URI. If you need to -set anything else (credentials, pattern, etc.) you need to use the full -form. - | -
Every repository can also optionally store config files in @@ -3546,7 +3531,7 @@ AQAjPgt3eFZQXwt8tsHAVv/QHiY5sI2dRcR+...