Replace deprecated setters in RestTemplateBuilder
MSALReplaces setConnectTimeout, setReadTimeout, and setSslBundle method invocations with connectTimeout, readTimeout, and sslBundle respectively.
org. openrewrite. java. spring. boot3. ReplaceRestTemplateBuilderMethodsmod run . --recipe= org. openrewrite. java. spring. boot3. ReplaceRestTemplateBuilderMethodsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Change method name
org.springframework.boot.web.client.RestTemplateBuilder setConnectTimeout(java.time.Duration)toconnectTimeout - Change method name
org.springframework.boot.web.client.RestTemplateBuilder setReadTimeout(java.time.Duration)toreadTimeout - Change method name
org.springframework.boot.web.client.RestTemplateBuilder setSslBundle(org.springframework.boot.ssl.SslBundle)tosslBundle - Replace
RestTemplateBuilder.requestFactory(Function)withrequestFactoryBuilder