Skip to content
Advertisement

Spring boot application with spring data cassandra failing to start

I have a spring boot application with spring web & spring data cassandra as dependencies. And I have a main method in a class annotated with @SpringBootApplication.

JavaScript

I run this application & run into the below error.

JavaScript

I am guessing this might be a some dependency related problem, but can’t figure out exactly what. I have tried few things which are commented in the pom.xml, those did not work.

Advertisement

Answer

The problem is the connection with the cassandra. Make sure that you’ve been created the keyspace-name on cassandra. After that in your project declare a Bean Configuration with the keyspace, in my case mykeyspace. You can visit https://kayaerol84.medium.com/cassandra-cluster-management-with-docker-compose-40265d9de076 for more details about setting up the keyspace.

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement