spring3.2 ajax jquery 显示返回信息 中文乱码
1 工程前后台都使用UTF-8字符集。
2 tomcat配置 <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8"/>。
3 spring3.2 注解 添加“produces = "text/plain;charset=UTF-8"”
@RequestMapping(value = "/batchDeleteUser.do", method = RequestMethod.POST,produces = "text/plain;charset=UTF-8")
@ResponseBody
public String ajax_batchDeleteUser(){
...
}
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。