Merge branch '2.0.x'
This commit is contained in:
commit
a2494df596
|
@ -563,7 +563,7 @@ JMX or an HTTP request is converted to the required types using an instance of
|
||||||
|
|
||||||
[[production-ready-endpoints-custom-web]]
|
[[production-ready-endpoints-custom-web]]
|
||||||
==== Custom Web Endpoints
|
==== Custom Web Endpoints
|
||||||
Operations on an `@Endpoint`, `@WebEndpoint`, or `@WebEndpointExtension` are automatically
|
Operations on an `@Endpoint`, `@WebEndpoint`, or `@EndpointWebExtension` are automatically
|
||||||
exposed over HTTP using Jersey, Spring MVC, or Spring WebFlux.
|
exposed over HTTP using Jersey, Spring MVC, or Spring WebFlux.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -33,14 +33,7 @@ public class SampleActuatorApplication {
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public HealthIndicator helloHealthIndicator() {
|
public HealthIndicator helloHealthIndicator() {
|
||||||
return new HealthIndicator() {
|
return () -> Health.up().withDetail("hello", "world").build();
|
||||||
|
|
||||||
@Override
|
|
||||||
public Health health() {
|
|
||||||
return Health.up().withDetail("hello", "world").build();
|
|
||||||
}
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,4 +18,4 @@ spring.jmx.enabled=true
|
||||||
|
|
||||||
spring.jackson.serialization.write_dates_as_timestamps=false
|
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
|
||||||
|
|
Loading…
Reference in New Issue