Skip to content

Commit 49bd279

Browse files
author
黎木健
committed
doc: add document
1 parent 3d744bd commit 49bd279

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

spring-cloud-zookeeper-config/src/main/java/org/springframework/cloud/zookeeper/config/ZookeeperPropertySourceLocator.java

+6-8
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@
4141
* "bootstrap" phase. Configuration is stored in the {@code /config} namespace by default.
4242
* Multiple {@code PropertySource} instances are created based on the application's name
4343
* 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
4747
* created:
4848
*
4949
* <pre>{@code
@@ -55,11 +55,9 @@
5555
* config/namespace2
5656
* }</pre>
5757
*
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".
6361
*
6462
* @author Spencer Gibb
6563
* @author lemonJ

0 commit comments

Comments
 (0)