mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2025-12-08 17:12:28 +08:00
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