title: How to add a custom health check in spring boot health?
body: <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-actuator&lt;/artifactId&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>This will add several useful endpoints to your application. One of them is /health. When you start your application and navigate to the /health endpoint you will see it returns already some data.</p>
  
  <pre><code>{
      "status":"UP",
      "diskSpace": {
          "status":"UP",
          "free":56443746,
          "threshold":1345660
      }
  }
  </code></pre>
  
  <p>How to add a custom health check in spring boot health?</p>