📅  最后修改于: 2022-03-11 14:52:18.164000             🧑  作者: Mango
public void testResourceFile() throws IOException {
File resource = new ClassPathResource("test.json").getFile();
String text = new String(Files.readAllBytes(resource.toPath()));
}