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
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;