疯狂的狮子Li
2022-01-16 dc0af0a419388b134e84cf85fdf4b320cc89c5ac
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);