title: Difference between Spring controller and Endpoint
body: <p>Spring boot actuator provides some endpoints like health, metrics, info. It also allows us to write our own custom endpoints. </p>
  
  <p>I have a requirement where I need to expose some Dropwizard metrics stats as an endpoint. Latest Spring-boot does support dropwizard metrics but it does not fit into my requirement, so I am planning to have my own web endpoint <code>/stats</code></p>
  
  <p>But now I am not able to decide whether it should be a normal <code>Controller</code> or a custom actuator <code>Endpoint</code>. What's the difference between these two terms?</p>
  
  <p>PS: question does seem opinion base, but the answer should be simple enough.</p>