Browse Source

Merge pull request #2270 from ericdahl/docs-health-builder

* docs-health-builder:
  Update custom HealthIndicator documentation
pull/2272/head
Phillip Webb 11 years ago
parent
commit
161cb7ab8a
  1. 4
      spring-boot-docs/src/main/asciidoc/production-ready-features.adoc

4
spring-boot-docs/src/main/asciidoc/production-ready-features.adoc

@ -223,9 +223,9 @@ additional details to be displayed.
public Health health() { public Health health() {
int errorCode = check(); // perform some specific health check int errorCode = check(); // perform some specific health check
if (errorCode != 0) { if (errorCode != 0) {
return Health.down().withDetail("Error Code", errorCode); return Health.down().withDetail("Error Code", errorCode).build();
} }
return Health.up(); return Health.up().build();
} }
} }

Loading…
Cancel
Save