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

 

文章三https://blog.csdn.net/minkeyto/article/details/105502423

posted @ 2024-05-16 18:07  xd99  阅读(5)  评论(0编辑  收藏  举报