ClassPathResource cpr = new ClassPathResource("/map/demo.json");
byte[] bdata = FileCopyUtils.copyToByteArray(cpr.getInputStream());
String data = new String(bdata, StandardCharsets.UTF_8);
JSONObject Info = JSONObject.parseObject(data);
其中在copyToByteArray中已经对inputStream进行了close操作