• Phillip Webb's avatar
    Validate @ConfigurationProperties on @Bean methods · 1d83e87b
    Phillip Webb authored
    Refactor `ConfigurationPropertiesBindingPostProcessor` to allow JSR-303
    validation on `@ConfigurationProperties` defined at the `@Bean` method
    level.
    
    JSR-303 validation is now applied when a JSR-303 implementation is
    available and `@Validated` is present on either the configuration
    properties class itself or the `@Bean` method that creates it.
    
    Standard Spring validation is also supported using a validator bean
    named `configurationPropertiesValidator`, or by having the configuration
    properties implement `Validator`.
    
    The commit also consolidates tests into a single location.
    
    Fixes gh-10803
    1d83e87b
Name
Last commit
Last update
.github Loading commit data...
.mvn Loading commit data...
ci Loading commit data...
eclipse Loading commit data...
spring-boot-project Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-samples-invoker Loading commit data...
spring-boot-tests Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.settings-template.xml 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...
SUPPORT.adoc Loading commit data...
mvnw Loading commit data...
mvnw.cmd Loading commit data...
pom.xml Loading commit data...