For example, to get `` `Resource``` of all xml files directly under the classpath, do as follows.
PathMatchingResourcePatternResolver resolover = new PathMatchingResourcePatternResolver();
Resource[] resources = resolover.getResources("classpath:*.xml");
for (Resource resource : resources) {
System.out.println(resource);
}
Recommended Posts