1.找到你的spring-mvc.xml添加上(圖1)
application/json;charset=UTF-8
text/html;charset=UTF-8
圖片1
2.在web.xml設(shè)置編碼過濾器(圖2)
圖2
3.在數(shù)據(jù)庫的url后邊加上useUnicode=true&characterEncoding=UTF-8(圖3)
圖3
1.找到你的spring-mvc.xml添加上(圖1)
application/json;charset=UTF-8
text/html;charset=UTF-8
2.在web.xml設(shè)置編碼過濾器(圖2)
3.在數(shù)據(jù)庫的url后邊加上useUnicode=true&characterEncoding=UTF-8(圖3)