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

相關文章
相關標籤/搜索