Migrate @Retryable(recover=...) + @Recover to programmatic RetryTemplate
ProprietaryConvert spring-retry @Retryable methods that name a @Recover method into Spring Framework 7's programmatic org.springframework.core.retry.RetryTemplate wrapped in a try/catch that dispatches to the (now plain) recover method. Spring Framework 7's resilience @Retryable annotation has no equivalent to @Recover, so this conversion is required for recover-method semantics to survive the migration.
io. moderne. java. spring. boot4. MigrateSpringRetryRecoverToRetryTemplatemod run . --recipe= io. moderne. java. spring. boot4. MigrateSpringRetryRecoverToRetryTemplateInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.