java.lang.ClassNotFoundException: org.hibernate.engine.transaction.spi.TransactionContext

前端 未结 6 1211
傲寒
傲寒 2021-02-19 06:02

I am developing Spring MVC Hibernate Integration example. In this example I\'m using Spring 4.1.9.RELEASE and Hibernate 5.1.0.Final. If I

6条回答
  •  醉梦人生
    2021-02-19 06:52

    I have solved it. I have removed this part my config class and it's solved.

    @Bean
    public HibernateTransactionManager transactionManager() {
        HibernateTransactionManager transactionManager = new HibernateTransactionManager();
        transactionManager.setSessionFactory(sessionFactory().getObject());
        return transactionManager;
    

提交回复
热议问题