报javax.validation.constraints不存在报错
使用2.4.12版本的SpringBoot,那么validation默认被移除了,所以添加上述依赖。
·
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
<version>2.4.12</version>
</dependency>
使用2.4.12版本的SpringBoot,那么validation默认被移除了,所以添加上述依赖
更多推荐
已为社区贡献1条内容
所有评论(0)