@RequestMapping(value = "/friendlink_list/province_list", produces = {"application/json;charset=UTF-8"}, method = RequestMethod.GET)
@ResponseBody
public String province_list(HttpServletRequest request, HttpServletResponse response) throws IOException {
FriendLinkService fls = new FriendLinkService();
String[] plist = fls.getPlist();
String pl = JSONObject.toJSONString(plist);
return pl;
}

fastjson string[]转 json字符串-LMLPHP

05-14 22:31