1
0
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:
chuntaojun
2019-09-04 12:35:55 +08:00
parent 5a9fb3ade1
commit 63e160560c
2 changed files with 15 additions and 15 deletions

View File

@@ -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);