title: Spring boot - setting up a global error handler to shield REST endpoints
body: <p>I have a spring boot application with restful endpoints. I want to have a global error handler that basically traps any exceptions so that I can then manage the response (i.e. dont want to expose a big java stacktrace in the response)</p>
  
  <p>Whats the best way to achieve this?</p>