@Email注解报红 是因为新版本需要validation启动器
解决方法:在pom.xml 加入下面依赖:
<dependency>
<groupId>org
.springframework
.boot
</groupId
>
<artifactId>spring
-boot
-starter
-validation
</artifactId
>
</dependency
>
转载请注明原文地址:https://blackberry.8miu.com/read-9745.html