spring3.2 ajax jquery 显示返回信息 中文乱码

1 工程先后台都使用UTF-8字符集。ajax

2 tomcat配置 <Connector port="8080" protocol="HTTP/1.1"  connectionTimeout="20000"  redirectPort="8443"  URIEncoding="UTF-8"/>。spring

3 spring3.2 注解 添加“produces = "text/plain;charset=UTF-8"”tomcat

@RequestMapping(value = "/batchDeleteUser.do", method = RequestMethod.POST,produces = "text/plain;charset=UTF-8")app

@ResponseBodyide

public String ajax_batchDeleteUser(){spa

...it

}io

相关文章
相关标签/搜索