<!-- Thanks for raising a Spring Boot issue. What sort of issue are you raising? Question Please ask questions about how to use something, or to understand why something isn't working as you expect it to, on Stack Overflow using the spring-boot tag. Bug report Please provide details of the problem, including the version of Spring Boot that you are using. If possible, please provide a test case or sample application that reproduces the problem. This makes it much easier for us to diagnose the problem and to verify that we have fixed it. Enhancement Please start by describing the problem that you are trying to solve. There may already be a solution, or there may be a way to solve it that you hadn't considered. --> It would be nice if the [Spring property validation example here.](https://github.com/spring-projects/spring-boot/blob/master/spring-boot-samples/spring-boot-sample-property-validation/src/main/java/sample/propertyvalidation/SamplePropertyValidationApplication.java) Did not use a static runner class to demonstrate whether or not this is required. I have a StackOverflow question [here that documents the issues I've been having.](http://stackoverflow.com/questions/38899990/spring-boot-autowired-configuration-only-null-when-validator-bean-used)