/**
* @TableId(type = IdType.ASSIGN_ID)
* private String id;
*
* MyBatis-Plus默认的主键策略是:ASSIGN_ID
* 使用了雪花算法
*/
@TableId(type = IdType.AUTO)
private Long id;
MyBatis-Plus 主键策略
最新推荐文章于 2024-07-24 20:44:05 发布