Allow both .yml and .yaml as valid YAML configuration file extensions
This commit is contained in:
parent
3ff54c0b5c
commit
46e1886975
|
@ -37,7 +37,7 @@ public final class SettingsLoaderFactory {
|
|||
public static SettingsLoader loaderFromResource(String resourceName) {
|
||||
if (resourceName.endsWith(".json")) {
|
||||
return new JsonSettingsLoader();
|
||||
} else if (resourceName.endsWith(".yml")) {
|
||||
} else if (resourceName.endsWith(".yml") || resourceName.endsWith(".yaml")) {
|
||||
return new YamlSettingsLoader();
|
||||
} else if (resourceName.endsWith(".properties")) {
|
||||
return new PropertiesSettingsLoader();
|
||||
|
|
Loading…
Reference in New Issue