title: Spring Actuator endpoints giving 404 error, except for health and info
body: <p>To better understand Spring Actuator, I have created a sample Spring Initializr project, with only the following two dependencies:  </p>
  
  <ol>
  <li>Spring Boot Actuator</li>
  <li>Spring Web</li>
  </ol>
  
  <p>In my <code>application.properties</code> file I enabled all the endpoints that are disabled by default for web applications (as per <a href="https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-features.html#production-ready-endpoints-exposing-endpoints" rel="nofollow noreferrer">https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-features.html#production-ready-endpoints-exposing-endpoints</a>).  </p>
  
  <blockquote>
    <p>It was my expectation that I would be able to access all the actuator endpoints.  However, I am getting <code>404s</code> for all endpoints except <a href="http://localhost:8080/actuator/health" rel="nofollow noreferrer">http://localhost:8080/actuator/health</a> and <a href="http://localhost:8080/actuator/info" rel="nofollow noreferrer">http://localhost:8080/actuator/info</a>.  </p>
  </blockquote>
  
  <p>My application.properties file is as follows:  </p>
  
  <pre><code># Source: https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-features.html#production-ready-endpoints-exposing-endpoints
  
  management.auditevents.enabled=true
  management.endpoint.beans.enabled=true
  management.endpoint.caches.enabled=true
  management.endpoint.conditions.enabled=true
  management.endpoint.configprops.enabled=true
  management.endpoint.env.enabled=true
  management.endpoint.flyway.enabled=true
  
  # true by default
  #management.endpoint.health.enabled=true
  
  management.endpoint.heapdump.enabled=true
  management.endpoint.httptrace.enabled=true
  
  # true by default
  #management.endpoint.info.enabled=true
  
  management.endpoint.integrationgraph.enabled=true
  management.endpoint.jolokia.enabled=true
  management.endpoint.logfile.enabled=true
  management.endpoint.loggers.enabled=true
  spring.liquibase.enabled=true
  management.endpoint.metrics.enabled=true
  management.endpoint.mappings.enabled=true
  management.endpoint.prometheus.enabled=true
  management.endpoint.scheduledtasks.enabled=true
  management.endpoint.sessions.enabled=true
  management.endpoint.shutdown.enabled=true
  management.endpoint.threaddump.enabled=true
  </code></pre>