You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/property-source-config/configmap-propertysource.adoc
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -520,9 +520,10 @@ spring:
520
520
----
521
521
522
522
Besides reading the `config-map-one`, Spring will also try to read `config-map-one-dev`; in this particular order. Each active profile
523
-
generates such a profile aware config map.
523
+
generates such a profile aware configmap.
524
524
525
-
Though your application should not be impacted by such a config map, it can be disabled if needed:
525
+
You can disable this "profile based sources" and then `config-map-one-dev` will
526
+
not be attempted:
526
527
527
528
[source,yaml]
528
529
----
@@ -539,6 +540,9 @@ spring:
539
540
includeProfileSpecificSources: false
540
541
----
541
542
543
+
NOTE: Since version `5.0.0-M1`, `includeProfileSpecificSources` is only supported for named sources (`spring.cloud.kubernetes.sources.name=XXX`); support for labeled sources has been removed.
544
+
545
+
542
546
Notice that just like before, there are two levels where you can specify this property: for all config maps or
543
547
for individual ones; the latter having a higher priority.
0 commit comments