title: How to load all files of a folder to a list of Resources in Spring?
body: <p>I have a folder and want to load all txt files to a list using Spring and wildcards:</p>
  
  <p>By annotation I could do the following:</p>
  
  <pre><code>@Value("classpath*:../../dir/*.txt")
  private Resource[] files;
  </code></pre>
  
  <p>But how can I achieve the same using spring programmatically?</p>