先上mybatis-plus版本
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/38fcb6e442aa1aece57ddeb0db8a093c.png)
最近发现在数据库自动填充的日期类型,使用mybatis-plus的查询操作,发现一直为nulll
解决办法
把实体类里面的Date改为LocalDateTime
@TableId(type = IdType.INPUT )
private Long id;
private String name;
private Integer age;
private String email;
private LocalDateTime create_time;
private LocalDateTime update_time;
最后完美解决,可以查询出来
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/fe79b953d8ea38ff0fdd7b52786a837a.png)