diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/LegacyHealthEndpointCompatibilityConfiguration.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/LegacyHealthEndpointCompatibilityConfiguration.java index 3b01411f07..8a9ba893e3 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/LegacyHealthEndpointCompatibilityConfiguration.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/LegacyHealthEndpointCompatibilityConfiguration.java @@ -39,14 +39,9 @@ import org.springframework.context.annotation.Configuration; */ @Configuration(proxyBeanMethods = false) @SuppressWarnings("deprecation") -@EnableConfigurationProperties +@EnableConfigurationProperties(HealthIndicatorProperties.class) class LegacyHealthEndpointCompatibilityConfiguration { - @Bean - HealthIndicatorProperties healthIndicatorProperties() { - return new HealthIndicatorProperties(); - } - @Bean @ConditionalOnMissingBean HealthAggregator healthAggregator(HealthIndicatorProperties healthIndicatorProperties) {