Add XML support to PropertiesPropertySourceLoader
Fixes gh-1777 Closes 1783
This commit is contained in:
committed by
Phillip Webb
parent
f5a52ddd5a
commit
ed12f97fda
@@ -34,7 +34,7 @@ public class PropertiesPropertySourceLoader implements PropertySourceLoader {
|
||||
|
||||
@Override
|
||||
public String[] getFileExtensions() {
|
||||
return new String[] { "properties" };
|
||||
return new String[] { "properties", "xml" };
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -34,6 +34,7 @@ public class PropertySourcesLoaderTests {
|
||||
assertTrue(this.loader.getAllFileExtensions().contains("yml"));
|
||||
assertTrue(this.loader.getAllFileExtensions().contains("yaml"));
|
||||
assertTrue(this.loader.getAllFileExtensions().contains("properties"));
|
||||
assertTrue(this.loader.getAllFileExtensions().contains("xml"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user