Spring starter-validation and Validator injection
<p>I've created simple non-mvc project and added spring-boot-starter-validation dependency. When I tried to Inject javax.validation.Validator I got an error <code>org.springframework.beans.factory.NoSuchBeanDefinitionException</code>.</p>

<p>Does it mean that spring-boot-starter-validation does not provide any default Validator i.e. <code>LocalValidatorFactoryBean</code> and I always have to create it on my own like in normal project without spring boot?</p>

<pre><code>@Component
public class ExampleService{

    @Autowired
    private Validator validator;

    public void someMethod(){
            //validation
    }

}
</code></pre>

<p>Injection fails and it does not matter if Validator is from javax.validation or org.springframework.validation package.</p>