mybatis-plus:Field 'id' doesn't have a default value; nested exception is java.sql.SQLException: Field 'id' doesn't have a default value

这个报错是因为实体类中设置了自增主键,而数据库表中没有设置自增。

 

posted @ 2021-01-28 14:01  狗艳艳花  阅读(1790)  评论(0编辑  收藏  举报