1、修改/etc/mysql/my.cnf
[client]
default-character-set = utf8
[mysqld]
default-character-set =utf8
2、重启sql服务器
3、在jdbc的url结尾加入?characterEncoding=utf8
1、修改/etc/mysql/my.cnf
[client]
default-character-set = utf8
[mysqld]
default-character-set =utf8
2、重启sql服务器
3、在jdbc的url结尾加入?characterEncoding=utf8