• Andy Wilkinson's avatar
    Ignore case when filtering out properties based on target name · fbe2e470
    Andy Wilkinson authored
    Previously, PropertiesConfigurationFactory would only create a
    DefaultPropertyNamePatternsMatcher that ignored case if it was
    ignoring unknown fields. If the binding had a target name and
    unknown fields were not being ignored the matcher would consider the
    case when finding matches. This meant that SERVER_PORT would not being
    to ServerProperties.port as SERVER did not match the target name,
    server.
    
    This commit updates PropertiesConfigurationFactory to use a
    case-ignoring DefaultPropertyNamePatternsMatcher when binding with
    a target name. The tests have also been updated to test binding both
    with and without ignoring case and using either Properties or
    PropertySources. The above-described matching is only performed
    against PropertySources and the bug only occurred when using a target
    name, making it important to test all combinations.
    
    Closes gh-3745
    fbe2e470
Name
Last commit
Last update
docs 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...
pom.xml Loading commit data...