Use javax.validation.constraints
org.openrewrite.java.spring.boot2.MigrateHibernateContraintsToJavax Use
javax.validation.constraints
instead of the deprecated org.hibernate.validator.constraints
in Spring Boot 2.0 or higher.- groupId: org.openrewrite.recipe
- artifactId: rewrite-spring
- version: 4.34.0
This recipe has no required configuration options. It can be activated by adding a dependency on
org.openrewrite.recipe:rewrite-spring:4.34.0
in your build file or by running a shell command (in which case no build changes are needed):Gradle
Maven POM
Maven Command Line
build.gradle
plugins {
id("org.openrewrite.rewrite") version("5.38.0")
}