When I try to use Hibernate ogm and spring boot the console gives “Could not instantiate named strategy class” error

前端 未结 2 573
遥遥无期
遥遥无期 2021-01-28 16:10

I tried to connect hibernate ogm,Spring boot and mongodb.I used jpa for my development. So I selected Hibernate ogm... When I try to run the application the console gives below

2条回答
  •  被撕碎了的回忆
    2021-01-28 16:47

    I don't use Spring Boot but JBoss WildFly 11/12 with MongoDB. I had problems getting started. By ensuring I was using the latest version of Hibernate, OGM & Elastic Search etc. fixed it for me.

    From your log:

    Caused by: java.lang.NoSuchMethodException: org.hibernate.ogm.datastore.mongodb.MongoDBDialect.()

    Shows mismatch of version numbers.

提交回复
热议问题