title: Need to get path to a folder in resources
body: <p>I am using Spring boot application. I have this structure in my resource folder</p>
  
  <pre><code>resources
   |__customers
        |__retail
  </code></pre>
  
  <p>I have to pass the path to this folder to one of the beans for writing files.
  The names of the files are dynamic so I cannot pass a predefined value to the file.</p>
  
  <p>To do this I tried </p>
  
  <pre><code>@value(${classpath:resources/customer/retail} )
  Resources resource;
  
  // Also tried 
  ResourceLoader loader = new FileSystemResourceLoader();
  
  ResourceUtils.getURL(filePathDump).getPath().getClass().getResource(
      "indexingData/publication/analysis/dump"
  );
  // and several other options 
  </code></pre>
  
  <p>but it shows throw file not found or resource not found Exception, Now I checked the way path are defined for each one of them and I am positive they were all specified correctly</p>
  
  <p>I need a way to pass this path to a folder in resources. Please help</p>