设置如下: jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8 数据库中表相应的字段设置如下:字符集:UTF-8