title: getServletConfig().getServletContext() equivalent in Spring
body: <p>I referred to a lot of posts but still I am unable to find a correct working answer.<br>
  I want to get it from my Java class itself and not using EL in jsp.  </p>
  
  <p>How to get the servlet context path in Spring?  </p>