Add XML support to PropertiesPropertySourceLoader

Fixes gh-1777
Closes 1783
pull/1783/merge
Phillip Wirth 10 years ago committed by Phillip Webb
parent f5a52ddd5a
commit ed12f97fda

@ -34,7 +34,7 @@ public class PropertiesPropertySourceLoader implements PropertySourceLoader {
@Override @Override
public String[] getFileExtensions() { public String[] getFileExtensions() {
return new String[] { "properties" }; return new String[] { "properties", "xml" };
} }
@Override @Override

@ -34,6 +34,7 @@ public class PropertySourcesLoaderTests {
assertTrue(this.loader.getAllFileExtensions().contains("yml")); assertTrue(this.loader.getAllFileExtensions().contains("yml"));
assertTrue(this.loader.getAllFileExtensions().contains("yaml")); assertTrue(this.loader.getAllFileExtensions().contains("yaml"));
assertTrue(this.loader.getAllFileExtensions().contains("properties")); assertTrue(this.loader.getAllFileExtensions().contains("properties"));
assertTrue(this.loader.getAllFileExtensions().contains("xml"));
} }
} }

Loading…
Cancel
Save