Spring boot actuator health endpoint
<p>I have create a PostgreSQL health indicator like this:</p>

<pre><code>@Component
public class PostgresHealthIndicator extends AbstractHealthIndicator {

    @Autowired
    DataSource postgresDataSource;

    public DataSourceHealthIndicator dbHealthIndicator() {
        DataSourceHealthIndicator indicator = new DataSourceHealthIndicator(postgresDataSource);
        return indicator;
    }

    @Override
    protected void doHealthCheck(Health.Builder builder) throws Exception {
        Health h = dbHealthIndicator().health();
        Status status = h.getStatus();
        if (status != null &amp;&amp; "DOWN".equals(status.getCode())) {
            builder.down();
        } else {
            builder.up();
        }
    }
}
</code></pre>

<p>In my Application.java I am scanning this package for this component:</p>

<pre><code>@ComponentScan({"com.bp.health"})
</code></pre>

<p>In my application.properties I have the following set:</p>

<pre><code>endpoints.health.sensitive=false
endpoints.health.id=health
endpoints.health.enabled=true
</code></pre>

<p>when I hit {url}/health I see:</p>

<blockquote>
  <p>{"status":"DOWN"}</p>
</blockquote>

<p>what do I need to do to get the custom health indicator to show?</p>