mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
fix(nacos): fix issue #859
This commit is contained in:
@@ -184,7 +184,7 @@ public class NacosConfigProperties {
|
||||
*/
|
||||
private List<Config> extConfig;
|
||||
|
||||
private ConfigService configService;
|
||||
private static ConfigService CONFIG_SERVICE;
|
||||
|
||||
// todo sts support
|
||||
|
||||
@@ -402,8 +402,8 @@ public class NacosConfigProperties {
|
||||
|
||||
public ConfigService configServiceInstance() {
|
||||
|
||||
if (null != configService) {
|
||||
return configService;
|
||||
if (null != CONFIG_SERVICE) {
|
||||
return CONFIG_SERVICE;
|
||||
}
|
||||
|
||||
Properties properties = new Properties();
|
||||
@@ -430,8 +430,8 @@ public class NacosConfigProperties {
|
||||
}
|
||||
|
||||
try {
|
||||
configService = NacosFactory.createConfigService(properties);
|
||||
return configService;
|
||||
CONFIG_SERVICE = NacosFactory.createConfigService(properties);
|
||||
return CONFIG_SERVICE;
|
||||
}
|
||||
catch (Exception e) {
|
||||
log.error("create config service error!properties={},e=,", this, e);
|
||||
|
Reference in New Issue
Block a user