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:
Lucas Saldanha
2015-07-17 02:16:52 -03:00
committed by Stephane Nicoll
parent 4596844b90
commit bf303b02f7
12 changed files with 342 additions and 1 deletions

View File

@@ -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`