I have a folder and you want to load all txt files into a list using Spring and wildcards:
In the annotation, I could do the following:
@Value("classpath*:../../dir/*.txt") private Resource[] files;
But how can I achieve the same using Spring programmatically?
source share