diff --git a/spring-boot-samples/spring-boot-sample-actuator/src/main/java/sample/actuator/SampleActuatorApplication.java b/spring-boot-samples/spring-boot-sample-actuator/src/main/java/sample/actuator/SampleActuatorApplication.java index 2a64554e0a..6a11b669cc 100644 --- a/spring-boot-samples/spring-boot-sample-actuator/src/main/java/sample/actuator/SampleActuatorApplication.java +++ b/spring-boot-samples/spring-boot-sample-actuator/src/main/java/sample/actuator/SampleActuatorApplication.java @@ -33,14 +33,7 @@ public class SampleActuatorApplication { @Bean public HealthIndicator helloHealthIndicator() { - return new HealthIndicator() { - - @Override - public Health health() { - return Health.up().withDetail("hello", "world").build(); - } - - }; + return () -> Health.up().withDetail("hello", "world").build(); } } diff --git a/spring-boot-samples/spring-boot-sample-actuator/src/main/resources/application.properties b/spring-boot-samples/spring-boot-sample-actuator/src/main/resources/application.properties index dd88f70938..bfc6809e10 100644 --- a/spring-boot-samples/spring-boot-sample-actuator/src/main/resources/application.properties +++ b/spring-boot-samples/spring-boot-sample-actuator/src/main/resources/application.properties @@ -18,4 +18,4 @@ spring.jmx.enabled=true spring.jackson.serialization.write_dates_as_timestamps=false -management.httptrace.include=REQUEST_HEADERS,RESPONSE_HEADERS,PRINCIPAL,REMOTE_ADDRESS,SESSION_ID +management.trace.http.include=request-headers,response-headers,principal,remote-address,session-id