实体类定义
@Entity
@Table(name = "app_fcm_push_record")
public class AppFcmPushRecordDO {
}
主键定义
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
private long id;
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
刚开始缺少上面两句,导致保存后无法获取id