mybatis數據庫插入中文出現亂碼

問題:使用navicat插入數據正常,mybatis插入中文亂碼: 解決: 加入紅框中的部分:html ?useUnicode=true&characterEncoding=UTF-8 若是使用配置文件,則加入:web ?useUnicode=true&characterEncoding=UTF-8 參考:https://jingyan.baidu.com/article/b87fe19e
相關文章
相關標籤/搜索