title: Configure consul health check to spring boot actuator '/health'
body: <p>For a microservice that I have been working on, I created a custom health check class extending AbstractHealthIndicator and able to get the output in</p>
  
  <pre><code>http://localhost:8080/actuator/health
  </code></pre>
  
  <p>But when I register the service with consul, the health check status is failing.</p>
  
  <p>Tried to configure the actuator url with consul health check as<code>spring.cloud.consul.discovery.health-check-url= http://localhost:8080/actuator/health</code> in bootstrap. But it is still failing with error <code>Get http://localhost:8566/actuator/health: dial tcp 127.0.0.1:8566: connect: connection refused</code></p>
  
  <p>If I try with <code>health-check-path: /actuator/health</code>, it is not taking this path at all and defaulting to <code>http://QINDW062.it.local:8566/my-health-check</code>.</p>
  
  <p>Any suggestions?</p>
  
  <p>Edit: </p>