<p>I've enabled liveness and readiness endpoints using Spring Boot actuator (v2.6.1)</p>
<p>What I have is the following config:</p>
<pre><code>management
  endpoint:
    health:
      enabled: true
      probes:
        enabled: true
      group:
        readiness:
          include: readinessStateProbeIndicator
        exploratory:
          include:
            - livenessState
            - readinessState
            - ping
          show-details: always
  health:
    enabled: true
    probes:
      livenessstate:
        enabled: true
      readinessstate:
        enabled: true
</code></pre>
<p>Probably <code>endpoint.health.enabled</code>, <code>endpoint.health.group.explotatory...</code> are not required but I set it because I've seen it for some working solution, but I don't think there will affect if are not needed.</p>
<p>What I have read, but not in official docs, is that this endpoints are not available in a local deployment (running the application). Is this the reason why I'm getting 404 when I try to call <code>http://localhost:8080/actuator/health/readiness</code> and <code>/actuator/health/liveness</code> or I'm missing something?</p>
<p>I checked some posts like <a href="https://stackoverflow.com/questions/63194537/spring-application-availability-liveness-and-readiness-returns-404">this</a> but it seems <code>management.health.enabled</code> has been deprecated and <code>management.endpoint.health.probes.enabled</code> should be enough.</p>
<p>Thanks</p>

dhalfageme
<p>This is the setting I was looking for, and it works fine on localhost:</p>
<pre><code>endpoint:
    health:
      probes:
        enabled: true
      enabled: true
</code></pre>
