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
Neither of answers worked for me even though I had my resources put in resources folders and followed the above answers. What did make a trick was:
@Value("file:*/**/resources/**/schema/*.json") private Resource[] resources;