The above error is quite obvious that javax.validation is missing. To fix this issue, we would need to import hibernate validator.
Here is the dependency to be added to the pom.
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>6.2.1.Final</version>
</dependency>
Make sure that the version defined above is compatible with hibernate core.