项目在网页中字符编码问题

,produces = "text/json;charset=UTF-8"在Controller类中有return JSON.toJSONString返回的@RequestMapping加上这句话
eg:@RequestMapping(value = "/listPage",method = RequestMethod.POST,produces="text/json;charset=UTF-8")
useUnicode=true&characterEncoding=UTF-8在配置文件中数据库的后边加上这句话

原文地址:https://www.cnblogs.com/zfwp123/p/14063047.html