加入下面的依赖
<!-- springboot 2.3之后消失的hibernate-validator解决方法-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
加入下面的依赖
<!-- springboot 2.3之后消失的hibernate-validator解决方法-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>