1:读取resource下面的文件
ClassPathResource cpr = new ClassPathResource("./MyBatisXmlFile"); File file = cpr.getFile(); File[] files = file.listFiles(); for (File file1 : files) { System.out.println(file1.getName()); }