diff --git a/README.adoc b/README.adoc index f7848f9a..56cfc01b 100644 --- a/README.adoc +++ b/README.adoc @@ -94,6 +94,17 @@ The HTTP service has resources in the following form: /{label}/{application}-{profile}.properties ---- +For example: + +---- +curl localhost:8888/foo/development +curl localhost:8888/foo/development/master +curl localhost:8888/foo/development,db/master +curl localhost:8888/foo-development.yml +curl localhost:8888/foo-db.properties +curl localhost:8888/master/foo-db.properties +---- + where `application` is injected as the `spring.config.name` in the `SpringApplication` (what is normally `application` in a regular Spring Boot app), `profile` is an active profile (or comma-separated list of properties), and `label` is an optional git label (defaults to `master`.) Spring Cloud Config Server pulls configuration for remote clients from various sources. The following example gets configuration from a git repository (which must be provided), as shown in the following example: