UnsatisfiedDependencyException: Error creating bean with name

后端 未结 19 972
遇见更好的自我
遇见更好的自我 2020-11-30 01:47

For several days I\'m trying to create Spring CRUD application. I\'m confused. I can\'t solve this errors.

org.springframework.beans.factory.Unsatisfi

19条回答
  •  执笔经年
    2020-11-30 02:21

    I had the exactly same issue, with a very very long stack trace. At the end of the trace I saw this:

    InvalidQueryException: Keyspace 'mykeyspace' does not exist

    I created the keyspace in cassandra, and solved the problem.

    CREATE KEYSPACE mykeyspace
      WITH REPLICATION = { 
       'class' : 'SimpleStrategy', 
       'replication_factor' : 1 
      };
    

提交回复
热议问题