Migrate to Spring Framework 7.0

Proprietary

Migrates 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_0
mod run . --recipe=io.moderne.java.spring.framework7.UpgradeSpringFramework_7_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 Framework 6.2
  2. Migrate Jackson2ObjectMapperBuilder to mapper builder pattern
  3. Migrate to Spring Framework 7.0
  4. Update GraalVM native reflection hints for Spring Framework 7.0
  5. Remove spring-jcl dependency
  6. Migrate deprecated APIs removed in Spring Framework 7.0
  7. Find removed APIs in Spring Framework 7.0
  8. Rename RequestContext.jstPresent to JSTL_PRESENT
  9. Explicitly set DynamicDestinationResolver on JmsTemplate
  10. Migrate HttpStatus enum values to RFC 9110 names
  11. Add @SpringExtensionConfig for nested tests
  12. Replace JUnit 4 Spring test base classes with JUnit Jupiter annotations
  13. Wrap GenericMessage map argument in MessageHeaders
  14. Remove Kotlin nullability from Spring HTTP entity type arguments
  15. Disambiguate null headers in HttpEntity, RequestEntity and ResponseEntity constructors
  16. Migrate DefaultResponseErrorHandler.handleError method signature
  17. Migrate handleError method invocations to new signature
  18. Remove path extension content negotiation methods
  19. Migrate deprecated path mapping options
  20. Remove deprecated setPathMatcher() calls
  21. Migrate HttpHeaders methods removed when MultiValueMap contract was dropped
  22. Migrate org.springframework.orm.hibernate5 to org.springframework.orm.jpa.hibernate
  23. Migrate to Hibernate 7.2.x