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:
parent
202bd4a6b2
commit
b99c10fadd
@ -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() {
|
||||||
|
@ -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 {
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user