• 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
..
.gitignore Loading commit data...
Guardfile Loading commit data...
appendix-application-properties.adoc Loading commit data...
appendix-auto-configuration-classes.adoc Loading commit data...
appendix-configuration-metadata.adoc Loading commit data...
appendix-dependency-versions.adoc Loading commit data...
appendix-executable-jar-format.adoc Loading commit data...
appendix-test-auto-configuration.adoc Loading commit data...
appendix.adoc Loading commit data...
build-tool-plugins.adoc Loading commit data...
deployment.adoc Loading commit data...
documentation-overview.adoc Loading commit data...
getting-started.adoc Loading commit data...
howto.adoc Loading commit data...
index-docinfo.xml Loading commit data...
index.adoc Loading commit data...
production-ready-features.adoc Loading commit data...
spring-boot-cli.adoc Loading commit data...
spring-boot-features.adoc Loading commit data...
using-spring-boot.adoc Loading commit data...