解决办法:
在pom.xml文件中加入
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>5.2.1.Final</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator-annotation-processor</artifactId>
<version>5.2.1.Final</version>
</dependency>
或者下载hibernate-validator-4.2.0.Final.jar
文件放到lib中,下载地址「https://mvnrepository.com/artifact/org.hibernate/hibernate-validator/4.2.0.Final」