Skip to content

Commit a2792ac

Browse files
author
Ryan Baxter
authored
Merge pull request #1815 from wind57/fix-1814
fix documentation bug
2 parents fee69f8 + bd152d2 commit a2792ac

1 file changed

Lines changed: 22 additions & 4 deletions

File tree

docs/src/main/asciidoc/quickstart.adoc

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,28 @@ Next try out a client, as follows:
1313

1414
----
1515
$ curl localhost:8888/foo/development
16-
{"name":"foo","label":"master","propertySources":[
17-
{"name":"https://github.com/scratches/config-repo/foo-development.properties","source":{"bar":"spam"}},
18-
{"name":"https://github.com/scratches/config-repo/foo.properties","source":{"foo":"bar"}}
19-
]}
16+
{
17+
"name": "foo",
18+
"profiles": [
19+
"development"
20+
]
21+
....
22+
"propertySources": [
23+
{
24+
"name": "https://github.com/spring-cloud-samples/config-repo/foo-development.properties",
25+
"source": {
26+
"bar": "spam",
27+
"foo": "from foo development"
28+
}
29+
},
30+
{
31+
"name": "https://github.com/spring-cloud-samples/config-repo/foo.properties",
32+
"source": {
33+
"foo": "from foo props",
34+
"democonfigclient.message": "hello spring io"
35+
}
36+
},
37+
....
2038
----
2139

2240
The default strategy for locating property sources is to clone a git repository (at `spring.cloud.config.server.git.uri`) and use it to initialize a mini `SpringApplication`.

0 commit comments

Comments
 (0)