此版本仍在开发中,尚不被认为是稳定的。对于最新的稳定版本,请使用 Spring Data Cassandra 4.5.2! |
从 3.x 到 4.x 的迁移指南
Spring Data for Apache Cassandra 4.0 在从早期版本升级时引入了一组重大更改。
异步模板 API
随着弃用ListenableFuture
,AsyncCqlOperations
和AsyncCassandraOperations
他们的依赖类被迁移到CompletableFuture
. 如果您的应用程序严重依赖于ListenableFuture
并且您无法轻易迁移到CompletableFuture
那么我们建议切换到旧版Async…Operations
类型中的legacy
子包。 那是org.springframework.data.cassandra.core.cql.legacy
为AsyncCqlOperations
和org.springframework.data.cassandra.core.legacy
为AsyncCassandraOperations
.