From 8738d26126549a077713a0599c0299780356808c Mon Sep 17 00:00:00 2001 From: wangjx <1609724385@qq.com> Date: Fri, 25 Jun 2021 23:36:35 +0800 Subject: [PATCH] =?UTF-8?q?nacos=E6=8C=81=E4=B9=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../csp/sentinel/dashboard/config/NacosConfiguration.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/config/NacosConfiguration.java b/sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/config/NacosConfiguration.java index 3b3d9503..fef4901a 100644 --- a/sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/config/NacosConfiguration.java +++ b/sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/config/NacosConfiguration.java @@ -21,7 +21,6 @@ import com.alibaba.fastjson.JSON; import com.alibaba.nacos.api.PropertyKeyConst; import com.alibaba.nacos.api.config.ConfigFactory; import com.alibaba.nacos.api.config.ConfigService; -import com.alibaba.nacos.api.config.annotation.NacosConfigurationProperties; import com.alibaba.nacos.api.exception.NacosException; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.context.annotation.Bean; @@ -45,10 +44,10 @@ public class NacosConfiguration { } @Bean - public ConfigService nacosConfiguration(NacosProperties nacosPropertiesConfiguration) throws NacosException { + public ConfigService nacosConfiguration(NacosProperties nacosProperties) throws NacosException { Properties properties = new Properties(); - properties.put(PropertyKeyConst.SERVER_ADDR,nacosPropertiesConfiguration.getServerAddr()); - properties.put(PropertyKeyConst.NAMESPACE,nacosPropertiesConfiguration.getNamespace()); + properties.put(PropertyKeyConst.SERVER_ADDR,nacosProperties.getServerAddr()); + properties.put(PropertyKeyConst.NAMESPACE,nacosProperties.getNamespace()); return ConfigFactory.createConfigService(properties); }