title: Java get context url in spring service without HttpServletRequest
body: <p>In my spring webservice I'm trying to get the url of my application like "<a href="http://localhost:8080/mycontext" rel="nofollow noreferrer">http://localhost:8080/mycontext</a>".
  My service does not contain any HttpServletRequest var, so I can I get it ? </p>