mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2026-01-01 04:38:14 +00:00
sentinel nacos 支持指定命名空间
This commit is contained in:
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…
x
Reference in New Issue
Block a user