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: spring-cloud-zookeeper-config/src/main/java/org/springframework/cloud/zookeeper/config/ZookeeperPropertySourceLocator.java
+6-8
Original file line number
Diff line number
Diff line change
@@ -41,9 +41,9 @@
41
41
* "bootstrap" phase. Configuration is stored in the {@code /config} namespace by default.
42
42
* Multiple {@code PropertySource} instances are created based on the application's name
43
43
* and the active profiles that mimics the Spring Cloud Config order of resolving
44
-
* properties.What's more,it supports multiple business namespaces through {@code defaultContext}.
45
-
* For example, an application with the name "testApp",and with the "dev"
46
-
* profile,with "namespace1,namespace2" defaultContext will have the following property sources
44
+
* properties.What's more,it supports multiple business namespaces through {@code defaultContext}.
45
+
* For example, an application with the name "testApp",and with the "dev"
46
+
* profile,with "namespace1,namespace2" defaultContext will have the following property sources
47
47
* created:
48
48
*
49
49
* <pre>{@code
@@ -55,11 +55,9 @@
55
55
* config/namespace2
56
56
* }</pre>
57
57
*
58
-
* The most specific property source is at the top, with the least specific at the bottom.
59
-
* Properties is the {@code config/application} namespace are applicable to all
60
-
* applications using zookeeper for configuration. Properties in the
61
-
* {@code config/testApp} namespace are only available to the instances of the service
62
-
* named "testApp".
58
+
* Properties in the {@code config/testApp} namespace are only available to the instances of the service
59
+
* named "testApp". If you want to share the configuration with other applications, you can configure the
60
+
* same {@code defaultContext} like "namespace1" or "namespace2".
0 commit comments