创建 Table 使用 POJO class spring 数据卡桑德拉

Create Table Using POJO class spring data cassandr

使用 spring 数据从 Casssandra POjo class 创建 Table Cassandra 是否有任何标签可以创建 table 定义

只需使用 org.springframework.data.cassandra.core.mapping.Table 中的注释 @Table 并使用 @PrimaryKey (value = "id") 如果你的 pojo 有 id 的属性。 对于 CassandraConfiguration.class,按照我的回答 here.