标签:os io ar html sp on c new size
response.setCharacterEncoding("utf-8");
response.setContentType("text/html; charset=utf-8");
List citys = commonInfoService.getDistrictsByProvincesId(provinceId);
PrintWriter out = null;
try {
out = response.getWriter();
JSONArray jsonArray = new JSONArray();
jsonArray.addAll(citys);
out.print("{\"success\":true,\"data\":"+jsonArray+"}");
out.flush();
} catch (IOException e) {
e.printStackTrace();
} finally{
out.close();
}
System.out.println("cityssize:"+citys.size());
标签:os io ar html sp on c new size
原文地址:http://www.cnblogs.com/mrgong/p/3949210.html