Validated数据校验
引入pom文件依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
依赖文章地址https://blog.csdn.net/MINGHUE/article/details/121543101
详细讲解用法地址https://blog.csdn.net/weixin_43990804/article/details/112974137