mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Previously, CloudFoundryActuatorAutoConfiguration required RestTemplateBuilder, using it to create the RestTemplate that's used the security interceptor. Following the modularization, RestTemplateBuilder is only present when spring-boot-restclient is on the classpath. In its absence, CloudFoundryActuatorAutoConfiguration would fail. This commit address this problem by using RestClient.Builder (and RestClient) instead of RestTemplateBuilder (and RestTemplate). This allows CloudFoundryActuatorAutoConfiguration to work without spring-boot-restclient as RestClient.Builder and RestClient are provided by spring-web that will always be there in an MVC webapp. Fixes gh-48826