您的位置:首页 > 其它

ajax请求返回乱码

2017-06-14 22:43 246 查看
1,web.xml中有如下配置:

  @RequestMapping(value="/test",,produces="text/html;charset=UTF-8")
@ResponseBody
public String test(HttpServletResponse re){
JSONObject json=new JSONObject();
json.put("msg", "测试");

   return json.toString();
}


View Code


                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: