Migrate to Spring Data 4.0

MSAL

Migrate applications to the Spring Data 2025.1 release train. Datastore-specific migration support is added incrementally.

org.openrewrite.java.spring.data.UpgradeSpringData_4_0
mod run . --recipe=org.openrewrite.java.spring.data.UpgradeSpringData_4_0

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

  1. Migrate to Spring Data JPA 3.4
  2. Migrate to Spring Data MongoDB 5.0