Migrate to Spring Framework 6.2

MSAL

Migrate applications to the latest Spring Framework 6.2 release.

org.openrewrite.java.spring.framework.UpgradeSpringFramework_6_2
mod run . --recipe=org.openrewrite.java.spring.framework.UpgradeSpringFramework_6_2

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.1
  2. Upgrade Gradle or Maven dependency versions org.springframework:*:6.2.x
  3. Migrate org.springframework.util.Base64Utils to java.util.Base64
  4. Migrate HandlerResult.hasExceptionHandler() to getExceptionHandler()
  5. Migrate org.springframework.web.reactive.HandlerResult.setExceptionHandler method
  6. Migrate MethodArgumentNotValidException.errorsToStringList and resolveErrorMessages
  7. Migrate ResourceHttpMessageWriter.addHeaders
  8. Migrate deprecated UriComponentsBuilder methods
  9. Migrate WebExchangeBindException.resolveErrorMessages
  10. Migrate setConnectTimeout(int) to ConnectionConfig setConnectTimeout(..)
  11. Replace constant with another constant
  12. Replace constant with another constant
  13. Change method name org.springframework.web.filter.reactive.ServerWebExchangeContextFilter get(reactor.util.context.Context) to getExchange
  14. Change method name org.springframework.web.reactive.function.client.support.WebClientAdapter forClient(org.springframework.web.reactive.function.client.WebClient) to create
  15. Change type JettyWebSocketClient to StandardWebSocketClient
  16. Change type JettyWebSocketClient to StandardWebSocketClient