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

,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在配置文件中数据库的后边加上这句话

posted @ 2020-11-30 19:19  小韩呐~  阅读(39)  评论(0编辑  收藏  举报