mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
commit
926cbeaccc
@ -31,8 +31,6 @@ public class AcmPropertySourceLocator implements PropertySourceLocator {
|
|||||||
|
|
||||||
private static final String DIAMOND_PROPERTY_SOURCE_NAME = "diamond";
|
private static final String DIAMOND_PROPERTY_SOURCE_NAME = "diamond";
|
||||||
|
|
||||||
private static String defaultDiamondGroup = "DEFAULT_GROUP";
|
|
||||||
|
|
||||||
private AcmPropertySourceBuilder acmPropertySourceBuilder = new AcmPropertySourceBuilder();
|
private AcmPropertySourceBuilder acmPropertySourceBuilder = new AcmPropertySourceBuilder();
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
@ -45,14 +43,14 @@ public class AcmPropertySourceLocator implements PropertySourceLocator {
|
|||||||
DIAMOND_PROPERTY_SOURCE_NAME);
|
DIAMOND_PROPERTY_SOURCE_NAME);
|
||||||
|
|
||||||
for (String dataId : acmIntegrationProperties.getGroupConfigurationDataIds()) {
|
for (String dataId : acmIntegrationProperties.getGroupConfigurationDataIds()) {
|
||||||
loadDiamondDataIfPresent(compositePropertySource, dataId, defaultDiamondGroup,
|
loadDiamondDataIfPresent(compositePropertySource, dataId,
|
||||||
true);
|
acmIntegrationProperties.getAcmProperties().getGroup(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (String dataId : acmIntegrationProperties
|
for (String dataId : acmIntegrationProperties
|
||||||
.getApplicationConfigurationDataIds()) {
|
.getApplicationConfigurationDataIds()) {
|
||||||
loadDiamondDataIfPresent(compositePropertySource, dataId, defaultDiamondGroup,
|
loadDiamondDataIfPresent(compositePropertySource, dataId,
|
||||||
false);
|
acmIntegrationProperties.getAcmProperties().getGroup(), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
return compositePropertySource;
|
return compositePropertySource;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user