We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 788b69d + aa43f5e commit 161cb7aCopy full SHA for 161cb7a
spring-boot-docs/src/main/asciidoc/production-ready-features.adoc
@@ -223,9 +223,9 @@ additional details to be displayed.
223
public Health health() {
224
int errorCode = check(); // perform some specific health check
225
if (errorCode != 0) {
226
- return Health.down().withDetail("Error Code", errorCode);
+ return Health.down().withDetail("Error Code", errorCode).build();
227
}
228
- return Health.up();
+ return Health.up().build();
229
230
231
0 commit comments