spring-boot/spring-boot-project
Phillip Webb 1d83e87bcd Validate @ConfigurationProperties on @Bean methods
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
2018-02-16 18:11:54 -08:00
..
spring-boot Validate @ConfigurationProperties on @Bean methods 2018-02-16 18:11:54 -08:00
spring-boot-actuator Polish 2018-02-16 18:11:54 -08:00
spring-boot-actuator-autoconfigure Polish 2018-02-16 18:11:54 -08:00
spring-boot-autoconfigure Polish 2018-02-16 18:11:54 -08:00
spring-boot-cli Polish static final usage for constants 2018-02-13 14:53:26 -08:00
spring-boot-dependencies Upgrade to Hazelcast 3.9.3 2018-02-16 20:32:14 +00:00
spring-boot-devtools Polish modifier order 2018-02-13 09:49:59 +01:00
spring-boot-docs Validate @ConfigurationProperties on @Bean methods 2018-02-16 18:11:54 -08:00
spring-boot-parent Merge branch '1.5.x' 2018-02-15 16:23:17 +00:00
spring-boot-properties-migrator Restore "Reason: " prefix 2018-01-30 15:14:49 +01:00
spring-boot-starters Use Jersey BOM in dependency management 2018-02-16 08:25:20 +00:00
spring-boot-test Polish 2018-02-16 18:11:54 -08:00
spring-boot-test-autoconfigure Provide package info for all packages included in javadoc 2018-02-08 16:50:37 +00:00
spring-boot-tools Merge branch '1.5.x' 2018-02-13 15:05:28 +00:00
pom.xml Rename spring-boot-deprecated-properties-support 2018-01-24 11:15:17 +01:00