I happened was: the insert with Mybatis-plus times, will get an error, learned are: Key id's main problem.
1. First of all:
Check whether the primary key of the entity class add a comment.
Auto: automatic growth strategy
2. The key (I have come across wrong place!)
Check the corresponding database table, the primary key check on whether the auto-increment.
(At that time, forget this table checked ....)