Correct the classpath of your application so that it contains a single, compatible version of org.hibernate.internal.SessionFactoryImpl
问题 I'm trying to connect MongoDB database via hibernate with spring-boot. While trying to connect to MongoDB, I'm getting below error. Please help me to connect via hibernate. In my build.gradle, I have "hibernate-ogm-mongodb" dependency only. Gradle : compile group: 'org.hibernate.ogm', name: 'hibernate-ogm-mongodb', version: '5.4.1.Final' persistence.xml: <?xml version="1.0"?> <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi