ClassPathResource resource = new ClassPathResource("properties/post2LazadaTest.json"); File file= = resource.getFile(); JSONArray btnArray = null; //读取文件 String input = FileUtils.readFileToString(file, "UTF-8");
ClassPathResource resource = new ClassPathResource("properties/post2LazadaTest.json"); File file= = resource.getFile(); JSONArray btnArray = null; //读取文件 String input = FileUtils.readFileToString(file, "UTF-8");
转载于:https://www.cnblogs.com/lshan/p/10573322.html