因为新版本需要导入相关的依赖
在pom.xml 中加入:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
解决-@Email注解使用爆红的问题
于 2022-09-01 22:49:05 首次发布
因为新版本需要导入相关的依赖
在pom.xml 中加入:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>