|
|
@ -39,7 +39,7 @@ import org.springframework.util.Assert;
|
|
|
|
* <pre class="code">
|
|
|
|
* <pre class="code">
|
|
|
|
* try {
|
|
|
|
* try {
|
|
|
|
* // do some test to determine state of component
|
|
|
|
* // do some test to determine state of component
|
|
|
|
* return new Health.Builder().up().withDetail("version", "1.1.2").build();
|
|
|
|
* return new Health.Builder().up().withDetail("version", "1.1.2").build();
|
|
|
|
* }
|
|
|
|
* }
|
|
|
|
* catch (Exception ex) {
|
|
|
|
* catch (Exception ex) {
|
|
|
|
* return new Health.Builder().down(ex).build();
|
|
|
|
* return new Health.Builder().down(ex).build();
|
|
|
|