title: How to get spring boot application jar parent folder path dynamically?
body: <p>I have a spring boot web application which I run using <strong>java -jar application.jar</strong>. I need to get the jar parent folder path dynamically from the code. How can I accomplish that?</p>
  
  <p>I have already tried <a href="https://stackoverflow.com/questions/320542/how-to-get-the-path-of-a-running-jar-file">this</a>, but without success.</p>