mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
修改yml配置读取绑定,遵循spring yml加载方式,支持environment级占位符替换
This commit is contained in:
@@ -20,7 +20,7 @@ public class ConfigLoadTest {
|
||||
|
||||
@Test
|
||||
public void testLoad() {
|
||||
Map<String, MappingConfig> configMap = ConfigLoader.load();
|
||||
Map<String, MappingConfig> configMap = ConfigLoader.load(null);
|
||||
|
||||
Assert.assertFalse(configMap.isEmpty());
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ public class Common {
|
||||
outerAdapterConfig.setProperties(properties);
|
||||
|
||||
RdbAdapter adapter = new RdbAdapter();
|
||||
adapter.init(outerAdapterConfig);
|
||||
adapter.init(outerAdapterConfig, null);
|
||||
return adapter;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user