使用hinernate的校验包的时候报javax/validation/ParameterNameProvider的错误 这是因为javax.validation扩展包版本和hibernate-validator包版本不一致导致的,可以这样解决:
代码语言:javascript复制<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>5.2.4.Final</version>
</dependency>
<!-- https://mvnrepository.com/artifact/javax.validation/validation-api -->
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>1.1.0.Final</version>
</dependency>