Add @AutoConfigureTestRestTemplate if necessary

MSAL

Adds @AutoConfigureTestRestTemplate to test classes annotated with @SpringBootTest that use TestRestTemplate since this bean is no longer auto-configured as described in the Spring Boot 4 migration guide.

org.openrewrite.java.spring.boot4.AddAutoConfigureTestRestTemplate
mod run . --recipe=org.openrewrite.java.spring.boot4.AddAutoConfigureTestRestTemplate

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