造成这一种原因有可能是时区问题导致
解决方法:在config.xml的文件中<property name="jdbcUrl">数据库名后面加入:
?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=UTC
如下:
<property name="jdbcUrl">jdbc:mysql://localhost:3306/jdbcStudy?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=UTC</property>