嵌入式卡桑德拉
目标:
具有其余端点的Spring Boot应用程序可连接到真正的cassandra实例。
Spring Boot组件测试以连接到嵌入式cassandra(这些可以集成并作为CI的一部分运行)
建造它的步骤
使用SPRING INITIALIZR创建一个独立的spring boot maven项目
添加所需的所有spring boot依赖项。 关键的列在下面
spring-boot-starter-data-cassandra-用于cassandra的Spring Boot jpa以支持CRUD操作
cassandra-driver-core-用于连接到真正的cassandra或嵌入式cassandra的Cassandra驱动程序
cassandra-unit-spring-启动嵌入式cassandra
cassandra-unit-shaded-启动嵌入式cass
评论0
最新资源