From 7690f0798a1adac5ffb075377d57bf95f67236d6 Mon Sep 17 00:00:00 2001 From: jingsenzhou Date: Fri, 26 Aug 2022 15:49:09 +0800 Subject: [PATCH] =?UTF-8?q?sentinel=20nacos=20=E6=94=AF=E6=8C=81=E6=8C=87?= =?UTF-8?q?=E5=AE=9A=E5=91=BD=E5=90=8D=E7=A9=BA=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../csp/sentinel/dashboard/rule/nacos/SentinelConfig.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jeecg-server-cloud/jeecg-visual/jeecg-cloud-sentinel/src/main/java/com/alibaba/csp/sentinel/dashboard/rule/nacos/SentinelConfig.java b/jeecg-server-cloud/jeecg-visual/jeecg-cloud-sentinel/src/main/java/com/alibaba/csp/sentinel/dashboard/rule/nacos/SentinelConfig.java index 8326ae99..de9450e0 100644 --- a/jeecg-server-cloud/jeecg-visual/jeecg-cloud-sentinel/src/main/java/com/alibaba/csp/sentinel/dashboard/rule/nacos/SentinelConfig.java +++ b/jeecg-server-cloud/jeecg-visual/jeecg-cloud-sentinel/src/main/java/com/alibaba/csp/sentinel/dashboard/rule/nacos/SentinelConfig.java @@ -157,6 +157,9 @@ public class SentinelConfig { if(StringUtils.isNotBlank(nacosConfigProperties.getPassword())){ properties.put(PropertyKeyConst.PASSWORD,nacosConfigProperties.getPassword()); } + if(StringUtils.isNotBlank(nacosConfigProperties.getNamespace())){ + properties.put(PropertyKeyConst.NAMESPACE,nacosConfigProperties.getNamespace()); + } return ConfigFactory.createConfigService(properties); } }