java.io.CharConversionException: Not an ISO 8859-1 character
response.reset(); response.setContentType("application/json;charset=UTF-8");
//// java.io.CharConversionException: Not an ISO 8859-1 character //使用response.getOutputStream() 出现异常,提示是ISO 8859-1字符编码 // response.getOutputStream().print(mapper.writeValueAsString(result)); // response.getOutputStream().flush(); response.getWriter().print(mapper.writeValueAsString(result)); response.getWriter().close();