在高版本的springboot中,需要加上
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
在高版本的springboot中,需要加上
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
本文标题:@Valid 注解不生效
本文链接:https://www.haomeiwen.com/subject/xxbpyltx.html
网友评论