Use javax.validation.constraints
MSALUse javax.validation.constraints instead of the deprecated org.hibernate.validator.constraints in Spring Boot 2.0 or higher.
org. openrewrite. java. spring. boot2. MigrateHibernateConstraintsToJavaxmod run . --recipe= org. openrewrite. java. spring. boot2. MigrateHibernateConstraintsToJavaxInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Change type
org.hibernate.validator.constraints.NotBlanktojavax.validation.constraints.NotBlank - Change type
org.hibernate.validator.constraints.NotEmptytojavax.validation.constraints.NotEmpty - Change type
org.hibernate.validator.constraints.Emailtojavax.validation.constraints.Email - Add
javax.validation-apidependency