• Andy Wilkinson's avatar
    Allow spring.config.location to be configured via servlet context · b8833c40
    Andy Wilkinson authored
    Previously, in a war deployment, the web environment’s property sources
    were initialized using the servlet context after the application’s
    configuration had been read by ConfigFileApplicationListener. This
    meant that spring.config.location configured via the servlet context
    had no effect.
    
    This commit adds a new ApplicationListener,
    ServletContextApplicationListener, that initialises the configurable
    web environment’s property sources using the servlet context. It’s
    ordered with higher precedence than ConfigFileApplicationListener to
    ensure that any properties defined in the servlet context are available
    when loading the application’s configuration.
    
    Closes gh-6801
    b8833c40
Name
Last commit
Last update
.mvn Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-actuator-docs Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-deployment-tests Loading commit data...
spring-boot-devtools Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-tools Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
mvnw Loading commit data...
mvnw.cmd Loading commit data...
pom.xml Loading commit data...