diff --git a/multi/multi__embedding_the_config_server.html b/multi/multi__embedding_the_config_server.html index 1b51f5f6..b520a7ed 100644 --- a/multi/multi__embedding_the_config_server.html +++ b/multi/multi__embedding_the_config_server.html @@ -1,21 +1,13 @@
-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
-a flag to indicate that the server should configure itself from its
-own remote repository. The flag is off by default because it can delay
-startup, but when embedded in another application it makes sense to
-initialize the same way as any other application.
![]() | Note |
|---|---|
It should be obvious, but remember that if you use the bootstrap
-flag the config server will need to have its name and repository URI
-configured in |
To change the location of the server endpoints you can (optionally)
-set spring.cloud.config.server.prefix, e.g. "/config", to serve the
-resources under a prefix. The prefix should start but not end with a
-"/". It is applied to the @RequestMappings in the Config Server
-(i.e. underneath the Spring Boot prefixes server.servletPath and
-server.contextPath).
If you want to read the configuration for an application directly from
-the backend repository (instead of from the config server) that’s
-basically an embedded config server with no endpoints. You can switch
-off the endpoints entirely if you don’t use the @EnableConfigServer
-annotation (just set spring.cloud.config.server.bootstrap=true).
The Config Server runs best as a standalone application.
+However, if need be, you can embed it in another application.
+To do so, use the @EnableConfigServer annotation.
+An optional property named spring.cloud.config.server.bootstrap can be useful in this case is.
+It is a flag to indicate whether the server should configure itself from its own remote repository.
+By default, the flag is off, because it can delay startup.
+However, when embedded in another application, it makes sense to initialize the same way as any other application.
![]() | Note |
|---|---|
If you use the bootstrap flag, the config server needs to have its name and repository URI configured in |
To change the location of the server endpoints, you can (optionally) set spring.cloud.config.server.prefix (for example, /config), to serve the resources under a prefix.
+The prefix should start but not end with a /.
+It is applied to the @RequestMappings in the Config Server (that is, underneath the Spring Boot server.servletPath and server.contextPath prefixes).
If you want to read the configuration for an application directly from the backend repository (instead of from the config server), you
+basically wat an embedded config server with no endpoints.
+You can switch off the endpoints entirely by not using the @EnableConfigServer annotation (set spring.cloud.config.server.bootstrap=true).