在/ect/my.cnf文件中[mysqld]区域中添加default-character-set=utf8

JDBC连接时URL时添加“?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull”