mirror of https://github.com/jeecgboot/jeecg-boot
sentinel nacos 支持指定命名空间
parent
c154ead0d1
commit
7690f0798a
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue