在id字段中添加@TableId注解 @TableId(type = IdType.ASSIGN_ID) private Long id; 自动填充 添加类实现元数据处理接口 @Componentpublic class MyMetaObjectHandler implements M....