1
0
mirror of https://gitee.com/mirrors/Spring-Cloud-Alibaba.git synced 2021-06-26 13:25:11 +08:00

sync code format from 1.x

This commit is contained in:
flystar32 2018-12-17 16:14:05 +08:00
parent 202bd4a6b2
commit b99c10fadd
3 changed files with 11 additions and 0 deletions

View File

@ -272,8 +272,17 @@ public class NacosConfigProperties {
} }
public static class Config { public static class Config {
/**
* the data id of extended configuration
*/
private String dataId; private String dataId;
/**
* the group of extended configuration, the default value is DEFAULT_GROUP
*/
private String group = "DEFAULT_GROUP"; private String group = "DEFAULT_GROUP";
/**
* whether to support dynamic refresh, the default does not support .
*/
private boolean refresh = false; private boolean refresh = false;
public String getDataId() { public String getDataId() {

View File

@ -33,6 +33,7 @@ import com.alibaba.nacos.api.config.ConfigService;
/** /**
* @author xiaojing * @author xiaojing
* @author pbting
*/ */
@Order(0) @Order(0)
public class NacosPropertySourceLocator implements PropertySourceLocator { public class NacosPropertySourceLocator implements PropertySourceLocator {

View File

@ -96,6 +96,7 @@ public class NacosContextRefresher
if (refreshProperties.isEnabled()) { if (refreshProperties.isEnabled()) {
for (NacosPropertySource nacosPropertySource : nacosPropertySourceRepository for (NacosPropertySource nacosPropertySource : nacosPropertySourceRepository
.getAll()) { .getAll()) {
if (!nacosPropertySource.isRefreshable()) { if (!nacosPropertySource.isRefreshable()) {
continue; continue;
} }