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