title: Set a relative Path to run on Tomcat
body: <p>I was hoping to use: classpath:/mydata/response.xml to copy a file to.</p>
  
  <p>like this..
   Path dest = Paths.get("classpath:/mydata/response.xml");</p>
  
  <p>for Spring boot this works elsewhere but not using Paths !</p>
  
  <p>I want to copy a file over thus...</p>
  
  <pre><code>                          InputStream is = file.getInputStream();
  
                            //Which relative Path syntax?
                            Path dest = Paths.get("./src/main/resources/mydata"+fileName);
                            Files.copy(is, dest);
  </code></pre>
  
  <p>any suggestions as to how to set the relative path to store my file on Tomcat?</p>
  
  <p>my target is:</p>
  
  <p>MyProject\src\main\resources\mydata</p>
  
  <p>It's a nice Spring Boot project..</p>