mybatis连接mysql数据库插入中文乱码

jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=utf8

添加了useUnicode=true&characterEncoding=utf8参数之后,插入中文就正常了。

原文地址:https://www.cnblogs.com/chpliy/p/8379029.html