public static void validate(Validator validator, Object object, Class<?>... groups) {
        Set<ConstraintViolation<Object>> constraintViolations = validator.validate(object, groups);
        if (CollectionUtils.isNotEmpty(constraintViolations)) {
            throw new ConstraintViolationException(constraintViolations);
        }
    }
Validate objects using Javax annotations such as @NotBlank, @NotNull, etc., mainly used in the Service layer
The function is the same as the parameter validation of the controller layer
inlong-manager/manager-common/src/main/java/org/apache/inlong/manager/common/util/ValidationUtils.java