rdb配置不支持yaml后缀文件 (#3964)

增加rdb配置支持yaml后缀文件
This commit is contained in:
mclubing
2022-05-13 11:26:04 +08:00
committed by GitHub
parent 622fed84ce
commit 2623d08b8c
@@ -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)) {