Spring MVC - @Valid on list of beans in REST service
In a Spring MVC REST service (json), I have a controller method like this one : @RequestMapping(method = RequestMethod.POST, value = { "/doesntmatter" }) @ResponseBody public List<...> myMethod(@Valid @RequestBody List<MyBean> request, BindingResult bindingResult) { Where the MyBean class has bean validation annotations. The validations don't seem to take place in this case, although it works well for other controllers. I don't want to encapsulate the list in a dto this that would change the json input. Why is there no validations for a list of beans ? What are the alternatives ? @Valid is a