最好建表就设置类型DATETIME而非DATE 然后在Mapper中,插入SQL语句values(jdbcType=TIMESTAMP) <resultMap>中设置jdbcType = "TIMESTAMP"