The Bean Validation API is on the classpath but no implementation could be found
Action:
Add an implementation, such as Hibernate Validator, to the classpath
启动项目时报了上述错误, 在网上查询了下问题, 大多数人都是采用的下述方案,
https://stackoverflow.com/questions/48483120/the-bean-validation-api-is-on-the-classpath-but-no-implementation-could-be-foun
即删除本地maven仓库的org下的jar包, 怀疑是jar包冲突导致的。
我尝试后并不能解决我的问题,仔细阅读控制台信息后, 尝试重新引入了hibernate校验框架的依赖, 问题解决!
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>5.2.4.Final</version>
</dependency>