As shown in the figure above, I just configure the user table as a sub table. Other tables in the same database are not divided into tables, but when I use mybaits plus to insert other tables, I find that shardingjdbc will automatically use the default snowflake algorithm as the primary key to insert into other tables.
Version information:
config indo:
As shown in the figure above, I just configure the user table as a sub table. Other tables in the same database are not divided into tables, but when I use mybaits plus to insert other tables, I find that shardingjdbc will automatically use the default snowflake algorithm as the primary key to insert into other tables.
How can I avoid this situation?
如上图配置,我仅仅是配置user表作为分表。同一数据库中其他表并没有分表,但是我结合mybaits-plus使用后,插入其他表的过程中,发现shardingJDBC会自动使用默认的雪花算法作为主键插入到其他表中。 我该如何避免这种情况?