@Autowired SmartValidator validator ; BindingResult bindingResult = new BeanPropertyBindingResult(obj, obj.getClass().getSimpleName()); validator.validate(obj, bindingResult);