@RequestMapping(value = "/countriesList",method = RequestMethod.GET)
@ResponseBody
public JSONArray countriesList() throws IOException {
String path = "/countries_list.json";
JSONArray json = null;
InputStream config = getClass().getResourceAsStream(path);
if (config == null) {
new BaseException("读取文件失败");
} else {
json = JSON.parseObject(config, JSONArray.class);
}
return json;
}