首先,需要在pom.xml中引入Hibernate-validator相关jar,此处使用Hibernate-validator实现
<dependency> <groupId>org.hibernate.validator</groupId> <artifactId>hibernate-validator</artifactId> <version>6.0.5.Final</version> </dependency>
时间: 2024-10-10 20:14:30
首先,需要在pom.xml中引入Hibernate-validator相关jar,此处使用Hibernate-validator实现
<dependency> <groupId>org.hibernate.validator</groupId> <artifactId>hibernate-validator</artifactId> <version>6.0.5.Final</version> </dependency>