title: Setting a base url for urls generated by Spring
body: <p>We've got a restful api running using spring which generates HATEOAS links. When I run the service locally, they are generated fine, but on our server, which hosts tomcat behind apache which proxies the app to /api/ (locally it's just run on /), the urls are still generated like the app is run on /.</p>
  
  <p>Is there any way to tell spring to use a base url when generating these?</p>