Remove @EnableBatchProcessing from Spring Boot applications

MSAL

Remove @EnableBatchProcessing from classes annotated with @SpringBootApplication, as in Spring Boot 3 it makes the batch auto-configuration back off. An annotation with attributes is kept, so its configuration is not lost.

org.openrewrite.java.spring.boot3.RemoveEnableBatchProcessing
mod run . --recipe=org.openrewrite.java.spring.boot3.RemoveEnableBatchProcessing

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.