This commit is contained in:
Stephane Nicoll 2018-07-25 11:48:05 +02:00
parent e6cf082dbc
commit 64c668f766
2 changed files with 2 additions and 9 deletions

View File

@ -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();
}
}

View File

@ -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