Unable to create a Configuration, because no Bean Validation provider could be found. Add a provider

When using POI for table import, the uploaded table has entities, and then there are corresponding verifications. The error is reported as follows:

Unable to create a Configuration, because no Bean Validation provider could be found. Add a provider like Hibernate Validator (RI) to your classpath.

At this time, consider the need to add validation to provide program dependencies

<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>

Guess you like

Origin blog.csdn.net/myhAini/article/details/116161953