Find RestTemplate allocations

Proprietary

RestTemplate was placed in maintenance mode in Spring 5 — Spring's docs explicitly steer new code to WebClient (reactive) or RestClient (Spring 6.1+, synchronous). Each RestTemplate() allocation is a candidate for migration.

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