疯狂的狮子li
2022-01-12 5413b37d71ddbaa42dc6f1ba7b885a322b9a3871
ruoyi-common/src/main/java/com/ruoyi/common/utils/ValidatorUtils.java
@@ -17,9 +17,9 @@
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class ValidatorUtils {
   private static final Validator VALID = SpringUtils.getBean(Validator.class);
    private static final Validator VALID = SpringUtils.getBean(Validator.class);
   public static <T> void validate(T object, Class<?>... groups) {
    public static <T> void validate(T object, Class<?>... groups) {
        Set<ConstraintViolation<T>> validate = VALID.validate(object, groups);
        if (!validate.isEmpty()) {
            throw new ConstraintViolationException("参数校验异常", validate);