Find @PropertySource on classes that lack @Configuration

Proprietary

@PropertySource only takes effect on a Spring @Configuration class — when applied to a stereotype like @Component or @Service, the property file is silently ignored. Move the annotation to a @Configuration class or change the surrounding class accordingly.

org.openrewrite.kotlin.spring.FindPropertySourceOnNonConfiguration$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.spring.FindPropertySourceOnNonConfiguration$KtRecipe'

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