我们会看到我们使用Jsr303的注解的时候他不会生效,而且会爆红,版本原因造成,如下图
解决方案:在xml文件下面加上以下依赖
org.hibernate.validator hibernate-validator6.0.17.Final compile
下面我们来讲解yml中生成随机数,用random函数来,例子如下

我们会看到我们使用Jsr303的注解的时候他不会生效,而且会爆红,版本原因造成,如下图
解决方案:在xml文件下面加上以下依赖
org.hibernate.validator hibernate-validator6.0.17.Final compile
下面我们来讲解yml中生成随机数,用random函数来,例子如下