From 88caa1fe6cd823880e19679db569125637af1dc4 Mon Sep 17 00:00:00 2001 From: Purgeyao Date: Tue, 6 Aug 2019 17:41:40 +0800 Subject: [PATCH] Modify NacosConfigProperties enableRemoteSyncConfig field annotation --- .../com/alibaba/cloud/nacos/NacosConfigProperties.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spring-cloud-alibaba-nacos-config/src/main/java/com/alibaba/cloud/nacos/NacosConfigProperties.java b/spring-cloud-alibaba-nacos-config/src/main/java/com/alibaba/cloud/nacos/NacosConfigProperties.java index d19dbb88..adfae5e3 100644 --- a/spring-cloud-alibaba-nacos-config/src/main/java/com/alibaba/cloud/nacos/NacosConfigProperties.java +++ b/spring-cloud-alibaba-nacos-config/src/main/java/com/alibaba/cloud/nacos/NacosConfigProperties.java @@ -101,8 +101,11 @@ public class NacosConfigProperties { private String configRetryTime; /** - * nacos enable add a listener when the configuration is obtained. - */ + * If you want to pull it yourself when the program starts to get the configuration for the first time, + * and the registered Listener is used for future configuration updates, you can keep the original + * code unchanged, just add the system parameter: enableRemoteSyncConfig = "true" ( But there is network overhead); + * therefore we recommend that you use {@link ConfigService#getConfigAndSignListener} directly. + */ private boolean enableRemoteSyncConfig = false; /**