title: Not able to exclude /info and /health/{*path} when using Spring Actuator
body: <p>I am using Spring Actuator (version 2.2.4.RELEASE) to generate a health check endpoint at <code>/localhost:8080/my-app/actuator/health</code> which works correctly.</p>
  <p>This generates 3 endpoints shown when visiting <code>/actuator</code> and shown in Swagger (version 2):</p>
  <ol>
  <li><code>/actuator/health</code></li>
  <li><code>/actuator/health/{*path}</code> (in my swagger page, this is appearing as <code>/actuator/health/**</code>)</li>
  <li><code>/actuator/info</code></li>
  </ol>
  <p>Because of AWS reasons, I am having issues with the <code>health/**</code> and would like to remove it (and I want to remove <code>/info</code> too as I have no need for it).</p>
  <p>I have tried adding the following things to my <code>application.properties</code> file:</p>
  <pre><code>management.endpoints.web.exposure.exclude=health,info
  </code></pre>
  <p>and</p>
  <pre><code>management.endpoints.jmx.exposure.exclude=health,info
  </code></pre>
  <p>but it doesn't make any difference (they are still generated). I have tried using <code>*</code> to see if that forces all endpoints to disappear but it doesn't change anything either.</p>
  <p>Any idea how I can resolved this issue?</p>
  <h1>EDIT 1</h1>
  <p>I found that a properties file was being overwritten by another. So, using the following commands:</p>
  <pre><code>management.endpoints.enabled-by-default=false
  management.endpoint.health.enabled=true
  </code></pre>
  <p>Gets rid of the <code>/actuator/info</code> endpoint. However, I still need to get rid of the the <code>/actuator/health/{*path}</code> and keep the <code>/actuator/health</code> endpoint.</p>