Spring
月来香满衣
个人邮箱:jw083411@qq.com。
有事请发邮件。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Spring MVC 对于返回JSON格式数据的中文乱码 解决方法
加入 produces = "text/plain;charset=utf-8" 例子: @RequestMapping(value = "/user/updatepwd", method = { RequestMethod.POST }, produces = "text/plain;charset=utf-8") @ResponseBody public ResponseMode原创 2013-10-10 10:26:24 · 1220 阅读 · 0 评论 -
Spring MVC 通过@ResponseBody标签返回JSON数据 报406错误的解决方法
通过@ResponseBody标签返回JSON数据的方法都报406错: 解决方法: @RequestMapping(value = "/user/updatepwd", method = { RequestMethod.POST }, produces = "text/plain;charset=utf-8") 将produces 的值改为application/json;charset原创 2013-10-10 10:33:00 · 3872 阅读 · 1 评论
分享