Spring 4 + Hibernate 5 = org.springframework.orm.jpa.EntityManagerHolder cannot be cast to org.springframework.orm.hibernate5.SessionHolder

后端 未结 1 865
悲哀的现实
悲哀的现实 2020-11-30 12:45

OK, I\'m a complete beginner when it comes to start a new java project and integrate tools like spring/hibernate, etc. In fact, this is the first time I\'m doing it. So I\'m

相关标签:
1条回答
  • Do you use Spring-Boot? Is so, in my case the problem was with @EnableAutoConfiguration - use exclude=HibernateJpaAutoConfiguration.class

    0 讨论(0)
提交回复
热议问题