I'm trying to use a method parameter validation feature supported by Bean Validation 1.1. For instance, the following method triggers the validation of the first parameter, making sure it's valid:
public String generateOtp(@Valid TotpAuthenticatorForm form, BindingResult bindingResult)
When I build a Spring Boot 2.7.7 project it's fine, but building a Spring Boot 3.0.1 project fails with a compilation error:
package javax.validation does not exist
How do I fix the issue?
<dependency><groupId>org.hibernate</groupId><artifactId>hibernate-validator</artifactId><version>8.0.0.Final</version></dependency>
– Jasminejason