mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
@@ -55,7 +55,7 @@ public class MappingConfigsLoader {
|
||||
}
|
||||
if (filePath.exists()) {
|
||||
String fileName = filePath.getName();
|
||||
if (!fileName.endsWith(".yml")) {
|
||||
if (!(fileName.endsWith(".yml") || fileName.endsWith(".yaml"))) {
|
||||
return null;
|
||||
}
|
||||
try (InputStream in = new FileInputStream(filePath)) {
|
||||
|
||||
Reference in New Issue
Block a user