I am looking for a way to get a list of all resource names from a given classpath directory, something like a method List getResourceNames (String direct
List getResourceNames (String direct
So in terms of the PathMatchingResourcePatternResolver this is what is needed in the code:
@Autowired ResourcePatternResolver resourceResolver; public void getResources() { resourceResolver.getResources("classpath:config/*.xml"); }