Commit 3f24ba1a by 冯硕楠

解决RenderUtil乱码问题 #IG3CB

parent 2e104d2d
...@@ -21,6 +21,7 @@ public class RenderUtil { ...@@ -21,6 +21,7 @@ public class RenderUtil {
*/ */
public static void renderJson(HttpServletResponse response, Object jsonObject) { public static void renderJson(HttpServletResponse response, Object jsonObject) {
try { try {
response.setContentType("application/json");
response.setCharacterEncoding("UTF-8"); response.setCharacterEncoding("UTF-8");
PrintWriter writer = response.getWriter(); PrintWriter writer = response.getWriter();
writer.write(JSON.toJSONString(jsonObject)); writer.write(JSON.toJSONString(jsonObject));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment