SpringMVC向前台返回JSON

JSONArray json = JSONArray.fromObject(childNode.toArray());
        String s = json.toString();
        response.setContentType("text/json; charset=UTF-8");
        response.setCharacterEncoding("UTF-8");
        try {
            response.getWriter().write(s);
        } catch (IOException e) {
            e.printStackTrace();
        }


本文出自 “梦朝思夕” 博客,请务必保留此出处http://qiangmzsx.blog.51cto.com/2052549/1381864

SpringMVC向前台返回JSON,布布扣,bubuko.com

SpringMVC向前台返回JSON

上一篇:BOT 协议解析


下一篇:Ai-Bot 之WindowsBot方法介绍