Merge pull request #4001 from xiaohundun/master

sentinel nacos 支持指定命名空间
pull/4077/head
JEECG 2022-09-29 11:52:32 +08:00 committed by GitHub
commit cb8adfb236
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);
}
}