This Project Goal,Spring Data Cassandra And CRUD API
- First,docker-compose up -d
- Second,docker ps and copy container ID
- Third,docker exec -it containerID bash
-Fourth, write cqlsh
- Fifth,describe keyspaces;
- Sixth,[IF NOT EXISTS] your keyspace,Create keyspace( your application.properties.keyspace name)
'' cqlsh> CREATE KEYSPACE userkeyspace WITH replication = {'class':'SimpleStrategy', 'replication_factor' : 1};("Optional:3")
describe keyspaces;''
- Seventh CREATE TABLE userList( id int PRIMARY KEY,firstName text,lastName text,age int,email text );
- Last,describe keyspaces; and describe tables;