Add missing @Configuration annotation

MSAL

Class having @Bean annotation over any methods but missing @Configuration annotation over the declaring class would have @Configuration annotation added. Classes referenced as scoped configuration via .class (e.g. @FeignClient(configuration = X.class)) are skipped to preserve their intended per-client scope.

org.openrewrite.java.spring.boot2.AddConfigurationAnnotationIfBeansPresent
mod run . --recipe=org.openrewrite.java.spring.boot2.AddConfigurationAnnotationIfBeansPresent

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