后台JSON字符串传前台乱码问题

描述

使用JSONUtil向前台返回包含中文字符的字符串时出现

解决方法

在@RequestMapping注解中加入

produces = "text/json;charset=UTF-8"

猜你喜欢

转载自blog.csdn.net/qq_37791322/article/details/81662183