Spring MVC 返回JSON数据中文乱码问题解决
1.在controller中注解处设置参数
@RequestMapping(value="/save",produces="text/html;charset=UTF-8")
2.在返回值之前设
response.setCharacterEncoding("UTF-8");
1.在controller中注解处设置参数
@RequestMapping(value="/save",produces="text/html;charset=UTF-8")
2.在返回值之前设
response.setCharacterEncoding("UTF-8");