sentinel nacos 支持指定命名空间

pull/4001/head
jingsenzhou 2022-08-26 15:49:09 +08:00
parent c154ead0d1
commit 7690f0798a
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);
}
}