Add configuration properties validation sample
Create a new project sample that demonstrate the usage of @ConfigurationProperties with configurationPropertiesValidator. Fixes gh-3513
This commit is contained in:
committed by
Stephane Nicoll
parent
4596844b90
commit
bf303b02f7
@@ -782,7 +782,9 @@ annotations to your `@ConfigurationProperties` class:
|
||||
----
|
||||
|
||||
You can also add a custom Spring `Validator` by creating a bean definition called
|
||||
`configurationPropertiesValidator`.
|
||||
`configurationPropertiesValidator`. There is a
|
||||
{github-code}/spring-boot-samples/spring-boot-sample-property-validation[Validation sample]
|
||||
so you can see how to set things up.
|
||||
|
||||
TIP: The `spring-boot-actuator` module includes an endpoint that exposes all
|
||||
`@ConfigurationProperties` beans. Simply point your web browser to `/configprops`
|
||||
|
||||
Reference in New Issue
Block a user