spring-cloud-config
spring-cloud-config copied to clipboard
Quick start documentation fix
At the end of the quick start documentation is says:
When it runs it will pick up the external configuration from the default local config server on
port 8888 if it is running. To modify the startup behaviour you can change the location of
the config server using bootstrap.properties (like application.properties but for the bootstrap
phase of an application context), e.g.
spring.cloud.config.uri: http://myconfigserver.com
The bootstrap properties will show up in the /env endpoint as a high-priority property
source, e.g.
$ curl localhost:8080/env
{
"profiles":[],
"configService:https://github.com/scratches/config-repo/bar.properties":{"foo":"bar"},
"servletContextInitParams":{},
"systemProperties":{...},
...
}
(a property source called "configService:<URL of remote repository>/<file name>" contains
the property "foo" with value "bar" and is highest priority).
In the JSON returned from localhost:8080/env I think it should be configService:http://myconfigserver.com/bar.properties":{"foo":"bar"}.
Actually, the URL should not be myconfigserver.com (it's the git repository URL not the config server URL). I changed the quickstart to reflect the repository URL already used in the server section and clarify it all a bit.