fix 参数校验不生效

master
jay 2024-06-12 20:54:44 +08:00
parent d008393a2b
commit b4f1aefbf6
8 changed files with 16 additions and 18 deletions

View File

@ -80,8 +80,9 @@
</dependency>
<dependency>
<groupId>jakarta.validation</groupId>
<artifactId>jakarta.validation-api</artifactId>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>5.3.0.Final</version>
</dependency>
<dependency>

View File

@ -25,9 +25,9 @@ package cc.iotkit.common.api;
import cc.iotkit.common.utils.MapstructUtils;
import cn.hutool.core.util.IdUtil;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.Map;

View File

@ -24,10 +24,11 @@
package cc.iotkit.common.api;
import cn.hutool.core.util.IdUtil;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import lombok.Data;
import java.io.Serializable;
/**

View File

@ -24,8 +24,8 @@
package cc.iotkit.common.api;
import cn.hutool.core.util.IdUtil;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import java.io.Serializable;

View File

@ -23,9 +23,9 @@
package cc.iotkit.common.utils;
import jakarta.validation.ConstraintViolation;
import jakarta.validation.ConstraintViolationException;
import jakarta.validation.Validator;
import javax.validation.ConstraintViolation;
import javax.validation.ConstraintViolationException;
import javax.validation.Validator;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;

View File

@ -31,8 +31,8 @@ import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.alibaba.excel.exception.ExcelAnalysisException;
import com.alibaba.excel.exception.ExcelDataConvertException;
import jakarta.validation.ConstraintViolation;
import jakarta.validation.ConstraintViolationException;
import javax.validation.ConstraintViolation;
import javax.validation.ConstraintViolationException;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

View File

@ -26,6 +26,7 @@
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-captcha</artifactId>

View File

@ -143,11 +143,6 @@
</exclusions>
</dependency>
<dependency>
<groupId>jakarta.validation</groupId>
<artifactId>jakarta.validation-api</artifactId>
<version>3.0.2</version>
</dependency>
<dependency>
<groupId>org.lionsoul</groupId>