mirror of
https://github.com/jeecgboot/jeecg-boot.git
synced 2025-09-10 00:49:12 +00:00
Merge pull request #4001 from xiaohundun/master
sentinel nacos 支持指定命名空间
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user