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(){
...
}
點擊查看更多內容
為 TA 點贊
評論
評論
共同學習,寫下你的評論
評論加載中...
作者其他優質文章
正在加載中
感謝您的支持,我會繼續努力的~
掃碼打賞,你說多少就多少
贊賞金額會直接到老師賬戶
支付方式
打開微信掃一掃,即可進行掃碼打賞哦