title: getRealPath("/") not working in spring boot
body: <p>Am working on spring boot applicaiton. I want to write a jsp files dynamically into the web content. So i took the real path from the ServletContext and write into it. It is working fine in eclipse.</p>
  
  <pre><code>@autowired
  ServletContext context 
  </code></pre>
  
  <p>or</p>
  
  <pre><code>ServletContext context = request.getSession().getServletContext();
  String targetPath = context.getRealPath("/default/pages");
  </code></pre>
  
  <p>But I try to deploy a war file on linux machine, the path is empty. Please     help me to fix this or let me know if it possible to do ?</p>
  
  <pre><code>spring boot embedded tomcat
  </code></pre>