title: Service layer bean validation in Spring 5?
body: <p>I need to validate beans given as argument to service layer methods in a Spring 5 application. I can get validation to work on controllers but on service layer the @Valid annotation is ignored. The service class is annotated with @Validated and an instance of it is autowired into the controller class thats making the method call.</p>
  <p>I need to do this in a non-Boot application. I've found some instructions but they have been Boot-specific.</p>
  <p>What am I missing here, why does this work on controller but not on the call from controller to service layer? Based on some googling, on controller level this might be somehow connected to the DispatcherServlet?</p>
  <p>What do I need to do to make this work on service layer? The reason I want to do this on service layer is that we have validation on service layer in other apps (Jersey framework + older Spring) and others want consistency.</p>