diff --git a/2.1.x/multi/multi__spring_cloud_context_application_context_services.html b/2.1.x/multi/multi__spring_cloud_context_application_context_services.html index ca848605..131c0b25 100644 --- a/2.1.x/multi/multi__spring_cloud_context_application_context_services.html +++ b/2.1.x/multi/multi__spring_cloud_context_application_context_services.html @@ -32,8 +32,10 @@ If there is a Config Server, every context in the hierarchy can also (in princip Normal Spring application context behavior rules apply to property resolution: properties from a child context override those in the parent, by name and also by property source name. (If the child has a property source with the same name as the parent, the value from the parent is not included in the child).
Note that the SpringApplicationBuilder
lets you share an Environment
amongst the whole hierarchy, but that is not the default.
-Thus, sibling contexts, in particular, do not need to have the same profiles or property sources, even though they may share common values with their parent.
The bootstrap.yml
(or .properties
) location can be specified by setting spring.cloud.bootstrap.name
(default: bootstrap
) or spring.cloud.bootstrap.location
(default: empty) — for example, in System properties.
+Thus, sibling contexts, in particular, do not need to have the same profiles or property sources, even though they may share common values with their parent.
The bootstrap.yml
(or .properties
) location can be specified by setting spring.cloud.bootstrap.name
(default: bootstrap
), spring.cloud.bootstrap.location
(default: empty) or spring.cloud.bootstrap.additional-location
(default: empty) — for example, in System properties.
Those properties behave like the spring.config.*
variants with the same name.
+With spring.cloud.bootstrap.location
the default locations are replaced and only the specified ones are used.
+To add locations to the list of default ones, spring.cloud.bootstrap.additional-location
could be used.
In fact, they are used to set up the bootstrap ApplicationContext
by setting those properties in its Environment
.
If there is an active profile (from spring.profiles.active
or through the Environment
API in the
context you are building), properties in that profile get loaded as well, the same as in a regular Spring Boot app — for example, from bootstrap-development.properties
for a development
profile.
The property sources that are added to your application by the bootstrap context are often “remote” (from example, from Spring Cloud Config Server). diff --git a/2.1.x/single/spring-cloud-commons.html b/2.1.x/single/spring-cloud-commons.html index 0cd1008b..8a37d651 100644 --- a/2.1.x/single/spring-cloud-commons.html +++ b/2.1.x/single/spring-cloud-commons.html @@ -38,8 +38,10 @@ If there is a Config Server, every context in the hierarchy can also (in princip Normal Spring application context behavior rules apply to property resolution: properties from a child context override those in the parent, by name and also by property source name. (If the child has a property source with the same name as the parent, the value from the parent is not included in the child).
Note that the SpringApplicationBuilder
lets you share an Environment
amongst the whole hierarchy, but that is not the default.
-Thus, sibling contexts, in particular, do not need to have the same profiles or property sources, even though they may share common values with their parent.
The bootstrap.yml
(or .properties
) location can be specified by setting spring.cloud.bootstrap.name
(default: bootstrap
) or spring.cloud.bootstrap.location
(default: empty) — for example, in System properties.
+Thus, sibling contexts, in particular, do not need to have the same profiles or property sources, even though they may share common values with their parent.
The bootstrap.yml
(or .properties
) location can be specified by setting spring.cloud.bootstrap.name
(default: bootstrap
), spring.cloud.bootstrap.location
(default: empty) or spring.cloud.bootstrap.additional-location
(default: empty) — for example, in System properties.
Those properties behave like the spring.config.*
variants with the same name.
+With spring.cloud.bootstrap.location
the default locations are replaced and only the specified ones are used.
+To add locations to the list of default ones, spring.cloud.bootstrap.additional-location
could be used.
In fact, they are used to set up the bootstrap ApplicationContext
by setting those properties in its Environment
.
If there is an active profile (from spring.profiles.active
or through the Environment
API in the
context you are building), properties in that profile get loaded as well, the same as in a regular Spring Boot app — for example, from bootstrap-development.properties
for a development
profile.
The property sources that are added to your application by the bootstrap context are often “remote” (from example, from Spring Cloud Config Server).
diff --git a/2.1.x/spring-cloud-commons.xml b/2.1.x/spring-cloud-commons.xml
index a1fe7a35..f5d37510 100644
--- a/2.1.x/spring-cloud-commons.xml
+++ b/2.1.x/spring-cloud-commons.xml
@@ -97,8 +97,10 @@ Thus, sibling contexts, in particular, do not need to have the same profiles or