• Stephane Nicoll's avatar
    Refine validation auto-configuration · 5d876125
    Stephane Nicoll authored
    Checking for the presence of a `ValidationProvider` resource is
    unfortunately not enough to trigger the validation auto-configuration.
    
    If `hibernate-validator` is added on the classpath without a `javax.el`
    implementation, the former will blow up on startup. So far this was a
    pilot error so we didn't have to care about it. Now that we have an
    auto-configuration that may lead to this error, we need to be extra
    careful and check that scenario ourselves.
    
    This commit adds an extra condition that runs as late as possible and
    attempt to actually initialize a `Validator`. If that fails for whatever
    reason, the auto-configuration will now back off.
    
    Several additional tests have been added to exercise this scenario.
    
    Closes gh-6228
    5d876125
Name
Last commit
Last update
.github Loading commit data...
.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-junit-runners Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-test Loading commit data...
spring-boot-test-autoconfigure Loading commit data...
spring-boot-tools Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CODE_OF_CONDUCT.adoc 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...