Problem solved: Mybatis-Plus auto-increment primary key is super big!

1. First, check whether the auto-increment primary key has no annotation?

(Added wow, no problem wow, why is it still so big)

 2. Oh yes, see if the package guide is wrong

seems to be ok

 Try adding a few more pieces of data, the id is getting bigger and bigger

It suddenly occurred to me that it might be the data added before, although it was deleted, but the logical data was deleted, and the physical data of the primary key value and index were not deleted, so the operation of truncating the table was performed:

Insert again

all right! ! !

 

 

Guess you like

Origin blog.csdn.net/m0_52982868/article/details/129437344