1. 28 Feb, 2017 4 commits
  2. 27 Feb, 2017 5 commits
    • Phillip Webb's avatar
      Merge branch '1.4.x' into 1.5.x · 47fd5f4f
      Phillip Webb authored
      47fd5f4f
    • Phillip Webb's avatar
      Polish · 47b00c08
      Phillip Webb authored
      47b00c08
    • Phillip Webb's avatar
      Extend Microsoft SQL Server detection · f6db1cbc
      Phillip Webb authored
      Update Microsoft SQL Server detection logic to retain "SQL SERVER"
      support (just in case the server string is driver specific).
      
      See gh-8222
      f6db1cbc
    • Stephane Nicoll's avatar
      Rework JSR-303 validation exposure with Spring MVC · 0435f122
      Stephane Nicoll authored
      This commit improves the initial solution by actually overriding the
      `mvcValidator` `@Bean`. This gives us more control as whether a custom
      validator has been specified or not. We now wrap it regardless of it
      being custom or provided by auto-configuration.
      
      Closes gh-8223
      0435f122
    • Stephane Nicoll's avatar
      Prevent warning due to BPP dependency · d8f62c46
      Stephane Nicoll authored
      `MethodValidationPostProcessor` requires a `Validator` so we need to flag
      it as an infrastructure bean to prevent an additional log that indicates
      it won't be post-processed.
      
      We obviously don't want to post-process the `Validator` here so adding the
      additional meta-data is a good idea anyway.
      
      Closes gh-8422
      d8f62c46
  3. 26 Feb, 2017 1 commit
  4. 24 Feb, 2017 1 commit
    • Stephane Nicoll's avatar
      Avoid exposing several javax.validaton.Validator beans · 4aa99b95
      Stephane Nicoll authored
      This commit makes sure that the Spring `Validator` used by the MVC
      layer doesn't expose a JSR-303 contract, if any.
      
      The default implementation of the `mvcValidator` is
      `LocalValidatorFactoryBean`. While this object is exposed as a Spring
      `Validator` only, its runtime capabilities expose that contract as well
      as the standard `Validator` and `ValidatorFactory` ones.
      
      Concretely, if an auto-configuration is checking if a
      `javax.validation.Validator` bean is missing, the condition will match
      since we only know about "advertized types": beans haven't been created
      yet so we can't inspect their runtime capabilities. Since the condition
      match, we will auto-configure a bean. At runtime though, we're no longer
      ale to inject a `javax.validation.Validator` by type since two candidates
      are available.
      
      This commit introduces `SpringValidatorAdapterWrapper`, a wrapper class
      on any `SpringValidatorAdapter` (`LocalValidatorFactoryBean` being one of
      the available implementations) that only exposes the Spring contract.
      
      Also, if a `javax.validation.Validator` bean is available, we will use it
      for the MVC layer, rather than creating a new one.
      
      Closes gh-8223
      4aa99b95
  5. 22 Feb, 2017 25 commits
  6. 21 Feb, 2017 4 commits