主键默认策略(注解不加默认为ASSIGN_ID):
@TableId(type = IdType.ASSIGN_ID)
自增主键策略:
@TableId(type = IdType.AUTO)
配置文件设置主键生成策略:
mybatis-plus.global-config.db-config.id-type=auto
标签:IdType,config,ASSIGN,Plus,MyBatis,TableId,type,主键
来源: https://www.cnblogs.com/shining-feifan/p/15473013.html