Browse Source

Add XML support to PropertiesPropertySourceLoader

Fixes gh-1777
Closes 1783
pull/1783/merge
Phillip Wirth 11 years ago committed by Phillip Webb
parent
commit
ed12f97fda
  1. 2
      spring-boot/src/main/java/org/springframework/boot/env/PropertiesPropertySourceLoader.java
  2. 1
      spring-boot/src/test/java/org/springframework/boot/env/PropertySourcesLoaderTests.java

2
spring-boot/src/main/java/org/springframework/boot/env/PropertiesPropertySourceLoader.java vendored

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

1
spring-boot/src/test/java/org/springframework/boot/env/PropertySourcesLoaderTests.java vendored

@ -34,6 +34,7 @@ public class PropertySourcesLoaderTests { @@ -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"));
}
}

Loading…
Cancel
Save