Find Environment.getProperty(...) calls

Proprietary

environment.getProperty("foo") is the lowest-level Spring config API — string-typed, untyped default, no IDE completion. Promote frequently-used properties to a @ConfigurationProperties data class so the property name and type are encoded once.

org.openrewrite.kotlin.spring.FindEnvironmentGetProperty$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.spring.FindEnvironmentGetProperty$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.