1. 18 Aug, 2015 1 commit
  2. 17 Aug, 2015 6 commits
    • Andy Wilkinson's avatar
    • Andy Wilkinson's avatar
      Update devtools to customise environment before app context is refreshed · 9e88dced
      Andy Wilkinson authored
      Prior to this commit, the devtools used bean factory post processors to
      configure the environment with custom, development-time properties. This
      meant that the environment was configured as part of the application
      context being refreshed. Crucially, this happened after any property
      conditions were evaluated making it impossible for the devtools to
      change the default auto-configuration behaviour for a bean or
      configuration class that was conditional on a property.
      
      This commit moves the configuration of the environment into an
      ApplicationListener that listens for the
      ApplicationEnvironmentPreparedEvent which is published as soon as the
      Environment has been prepared and before the application context is
      refreshed.
      
      Closes gh-3726
      9e88dced
    • Andy Wilkinson's avatar
      Introduce defined extension point for modifying the environment · e370b592
      Andy Wilkinson authored
      The commit introduces a new extension point, EnvironmentPostProcessor,
      that can be implemented by classes that want to modify the
      environment. Implementations of EnvironmentPostProcessor are loaded
      via spring.factories and called in response to the
      ApplicationEnvironmentPreparedEvent. Application listeners that wish
      to work with the post-processed environment can continue to listen
      to ApplicationEnvironmentPreparedEvent and order themselves to
      run after EnvironmentPostProcessingApplicationListener.
      
      Existing ApplicationListeners that modify the environment have,
      where possible, been updated to implement EnvironmentPostProcessor
      instead.
      
      Closes gh-3737
      e370b592
    • Stephane Nicoll's avatar
      2f862cfb
    • Stephane Nicoll's avatar
      Merge branch '1.2.x' · a6f85862
      Stephane Nicoll authored
      Conflicts:
      	spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/HealthIndicatorAutoConfiguration.java
      a6f85862
    • Stephane Nicoll's avatar
      Properly guard DB health indicator · 11b82cc6
      Stephane Nicoll authored
      The DataSource health indicator uses `JdbcTemplate` behind the scenes
      but nothing was checking that it is actually available.
      
      `DataSourcesHealthIndicatorConfiguration` is now disabled if
      `spring-jdbc` is not on the classpath.
      
      Fixes gh-3765
      11b82cc6
  3. 15 Aug, 2015 6 commits
  4. 14 Aug, 2015 13 commits
  5. 13 Aug, 2015 6 commits
    • Andy Wilkinson's avatar
      Workaround bizarre compiler problem · c15a670c
      Andy Wilkinson authored
      c15a670c
    • Andy Wilkinson's avatar
      Detect ConfigurableWebBindingInitializer bean and register with MVC · 51dd806a
      Andy Wilkinson authored
      Previously, to use a custom ConfigurableWebBindingInitializer, it was
      necessary to extend WebMvcConfigurationSupport and override
      getConfigurableWebBindingInitializer. This had the unwanted
      side-effect of switching off the auto-configuration of Spring MVC.
      
      This commit updates the auto-configuration to look for a
      ConfigurableWebBindingInitializer bean and register it with Spring
      MVC.
      
      Closes gh-2526
      51dd806a
    • Martin Lippert's avatar
      511c6d39
    • Craig Andrews's avatar
      Add more Jackson dependencies to spring-boot-dependencies · 2e0e2a3d
      Craig Andrews authored
      Add:
      
       - jackson-datatype-hibernate4
       - jackson-datatype-hibernate5
       - jackson-datatype-jdk7
       - jackson-module-parameter-names
      
      Closes gh-3727
      2e0e2a3d
    • izeye's avatar
      Polish documentation · eab7eff0
      izeye authored
      Closes gh-3738
      eab7eff0
    • 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
  6. 12 Aug, 2015 2 commits
  7. 11 Aug, 2015 2 commits
  8. 10 Aug, 2015 4 commits