diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/HealthProperties.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/HealthProperties.java index 53e2bc01d39..7ce78e2d31f 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/HealthProperties.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/HealthProperties.java @@ -23,6 +23,7 @@ import java.util.Map; import java.util.Set; import org.springframework.boot.actuate.health.HealthEndpoint; +import org.springframework.boot.context.properties.NestedConfigurationProperty; /** * Properties used to configure the health endpoint and endpoint groups. @@ -33,6 +34,7 @@ import org.springframework.boot.actuate.health.HealthEndpoint; */ public abstract class HealthProperties { + @NestedConfigurationProperty private final Status status = new Status(); /** diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json index b991dbf9d90..e63814aac58 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json @@ -28,6 +28,15 @@ "name": "management.endpoint.health.show-details", "defaultValue": "never" }, + { + "name": "management.endpoint.health.status.order", + "defaultValue": [ + "DOWN", + "OUT_OF_SERVICE", + "UP", + "UNKNOWN" + ] + }, { "name": "management.endpoints.enabled-by-default", "type": "java.lang.Boolean", @@ -162,7 +171,10 @@ "OUT_OF_SERVICE", "UP", "UNKNOWN" - ] + ], + "deprecation": { + "replacement": "management.endpoint.health.status.order" + } }, { "name": "management.health.mail.enabled",