Migrate RestTemplate configuration to RestClient

Proprietary

Migrates RestTemplate setter-based bean configuration to the immutable RestClient.Builder API. Folds the common configure-and-return factory pattern (template.setErrorHandler(...); return template;) into a mutate()/builder() chain when the mutated instance is the value returned by the method. Setters without a safe fold are left in place with a TODO comment. Applies to methods whose RestTemplate has already been retyped to RestClient.

io.moderne.java.spring.boot3.MigrateRestTemplateConfigurationToRestClient
mod run . --recipe=io.moderne.java.spring.boot3.MigrateRestTemplateConfigurationToRestClient

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