title: What's the proper/cleanest way to define a different context for actuator endpoints?
body: <p>I've seen several answers but Spring Boot properties and logic have changed a lot in that regard in the last versions.</p>
  
  <p>Properties:</p>
  
  <pre><code>Boot 1.X: server.context-path + server.servlet-path + management.context-path
  Boot 2.X: server.servlet.context-path + server.servlet.path + management.endpoints.web.base-path
  </code></pre>
  
  <p>Is there any way to configure this properties so the context for my app is <code>/myapp</code>, the context for REST controllers is <code>/myapp/api</code> and the context for actuators is <code>/myapp/actuators</code>?</p>