Updates case of property in documentation

Fixes gh-1840
This commit is contained in:
Eugene
2021-03-20 14:23:13 -04:00
committed by spencergibb
parent e7be2b8c5a
commit 4fc9696060

View File

@@ -241,7 +241,7 @@ spring:
NOTE: Spring Cloud guesses that a pattern containing a profile that does not end in `\*` implies that you actually want to match a list of profiles starting with this pattern (so `*/staging` is a shortcut for `["\*/staging", "*/staging,*"]`, and so on).
This is common where, for instance, you need to run applications in the "`development`" profile locally but also the "`cloud`" profile remotely.
Every repository can also optionally store config files in sub-directories, and patterns to search for those directories can be specified as `searchPaths`.
Every repository can also optionally store config files in sub-directories, and patterns to search for those directories can be specified as `search-paths`.
The following example shows a config file at the top level:
[source,yaml]
@@ -252,7 +252,9 @@ spring:
server:
git:
uri: https://github.com/spring-cloud-samples/config-repo
searchPaths: foo,bar*
search-paths:
- foo
- bar*
----
In the preceding example, the server searches for config files in the top level and in the `foo/` sub-directory and also any sub-directory whose name begins with `bar`.
@@ -448,7 +450,7 @@ spring:
server:
git:
uri: https://github.com/spring-cloud-samples/config-repo
searchPaths: '{application}'
search-paths: '{application}'
----
The preceding listing causes a search of the repository for files in the same name as the directory (as well as the top level).