Merge pull request #4001 from xiaohundun/master

sentinel nacos 支持指定命名空间
pull/5714/head
JEECG 2022-09-29 11:52:32 +08:00 committed by GitHub
commit 1220cf54c5
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}
}