Migrate to Spring Framework 7.0
ProprietaryMigrates applications to Spring Framework 7.0. This recipe applies all necessary changes including API migrations, removed feature detection, and configuration updates.
io. moderne. java. spring. framework7. UpgradeSpringFramework_7_0mod run . --recipe= io. moderne. java. spring. framework7. UpgradeSpringFramework_7_0Install 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.
- Migrate to Spring Framework 6.2
- Migrate
Jackson2ObjectMapperBuilderto mapper builder pattern - Migrate to Spring Framework 7.0
- Update GraalVM native reflection hints for Spring Framework 7.0
- Remove spring-jcl dependency
- Migrate deprecated APIs removed in Spring Framework 7.0
- Find removed APIs in Spring Framework 7.0
- Rename
RequestContext.jstPresenttoJSTL_PRESENT - Explicitly set DynamicDestinationResolver on JmsTemplate
- Migrate
HttpStatusenum values to RFC 9110 names - Add
@SpringExtensionConfigfor nested tests - Replace JUnit 4 Spring test base classes with JUnit Jupiter annotations
- Wrap
GenericMessagemap argument inMessageHeaders - Remove Kotlin nullability from Spring HTTP entity type arguments
- Disambiguate
nullheaders inHttpEntity,RequestEntityandResponseEntityconstructors - Migrate
DefaultResponseErrorHandler.handleErrormethod signature - Migrate
handleErrormethod invocations to new signature - Remove path extension content negotiation methods
- Migrate deprecated path mapping options
- Remove deprecated
setPathMatcher()calls - Migrate
HttpHeadersmethods removed whenMultiValueMapcontract was dropped - Migrate
org.springframework.orm.hibernate5toorg.springframework.orm.jpa.hibernate - Migrate to Hibernate 7.2.x