You can do it this way:
@RequestMapping(value = "/save", method = RequestMethod.POST)
public ModelAndView saveEntity(@Valid Entity entity, BindingResult result) {
if (result.hasErrors()) {
// do something
}
// do something else
}
and also additional method is needed in the controller to register your validator:
@InitBinder("entity")
public void initBinder(WebDataBinder binder) {
binder.setValidator(new EntityValidator());
}