diff --git a/multi/multi__serving_plain_text.html b/multi/multi__serving_plain_text.html index 79c5d82e..1d2e02af 100644 --- a/multi/multi__serving_plain_text.html +++ b/multi/multi__serving_plain_text.html @@ -33,8 +33,8 @@ nginx.conf

where nginx.conf looks like this }

and /foo/development/master/nginx.conf like this:

server {
     listen              80;
     server_name         develop.com;
-}
[Note]Note

just like the source files for environment configuration, the +}

[Note]Note

Just like the source files for environment configuration, the "profile" is used to resolve the file name, so if you want a profile-specific file then /*/development/*/logback.xml will be resolved by a file called logback-development.xml (in preference -to logback.xml).

\ No newline at end of file +to logback.xml).

[Note]Note

If you do not want to supply the label and let the server use the default label, you can supply a useDefaultLabel request parameter. So, the above example for the default profile could look like /foo/default/nginx.conf?useDefaultLabel.

\ No newline at end of file diff --git a/single/spring-cloud-config.html b/single/spring-cloud-config.html index af168349..cb12d6ba 100644 --- a/single/spring-cloud-config.html +++ b/single/spring-cloud-config.html @@ -730,11 +730,11 @@ nginx.conf

where nginx.conf looks like this }

and /foo/development/master/nginx.conf like this:

server {
     listen              80;
     server_name         develop.com;
-}
[Note]Note

just like the source files for environment configuration, the +}

[Note]Note

Just like the source files for environment configuration, the "profile" is used to resolve the file name, so if you want a profile-specific file then /*/development/*/logback.xml will be resolved by a file called logback-development.xml (in preference -to logback.xml).

5. Embedding the Config Server

The Config Server runs best as a standalone application, but if you +to logback.xml).

[Note]Note

If you do not want to supply the label and let the server use the default label, you can supply a useDefaultLabel request parameter. So, the above example for the default profile could look like /foo/default/nginx.conf?useDefaultLabel.

5. Embedding the Config Server

The Config Server runs best as a standalone application, but if you need to you can embed it in another application. Just use the @EnableConfigServer annotation. An optional property that can be useful in this case is spring.cloud.config.server.bootstrap which is diff --git a/spring-cloud-config.xml b/spring-cloud-config.xml index 338d8d89..f415f566 100644 --- a/spring-cloud-config.xml +++ b/spring-cloud-config.xml @@ -1182,12 +1182,15 @@ nginx: server_name develop.com; } -just like the source files for environment configuration, the +Just like the source files for environment configuration, the "profile" is used to resolve the file name, so if you want a profile-specific file then /*/development/*/logback.xml will be resolved by a file called logback-development.xml (in preference to logback.xml). + +If you do not want to supply the label and let the server use the default label, you can supply a useDefaultLabel request parameter. So, the above example for the default profile could look like /foo/default/nginx.conf?useDefaultLabel. + Embedding the Config Server