跳到主要内容
版本:5.1.1

从 3.x 到 4.x 的迁移指南

Doubao 中英对照 Migration Guide from 3.x to 4.x

Spring Data for Apache Cassandra 4.0 从早期版本升级时引入了一系列破坏性变更。

异步模板 API​

随着 ListenableFuture 的弃用,AsyncCqlOperations 和 AsyncCassandraOperations 及其依赖类已迁移到 CompletableFuture。如果您的应用严重依赖 ListenableFuture,且无法轻松迁移到 CompletableFuture,我们建议改用 legacy 子包中的旧版 Async…Operations 类型,即 AsyncCqlOperations 对应的 org.springframework.data.cassandra.core.cql.legacy,以及 AsyncCassandraOperations 对应的 org.springframework.data.cassandra.core.legacy。