class ValidateService {

    @Autowired private Validator validator;

    public void validate(Object obj){<FILL_FUNCTION_BODY>}

}


        Set<ConstraintViolation<Object>> resultSet = validator.validate(obj);
        if(resultSet == null || resultSet.isEmpty()){
            return ;
        }
        resultSet.stream().forEach(item -> {throw new BizException(item.getMessage());});
    
<no_super_class>