java.lang.IllegalArgumentException: 'sessionFactory' or 'hibernateTemplate' is required in spring+hibernate

前端 未结 4 386
暗喜
暗喜 2021-01-18 00:11

I am doing spring + hibernate apllication. When I run the application on tomcat server I am getting some exception. Below is my code.

This is my bean config file.

4条回答
  •  执念已碎
    2021-01-18 01:03

    I think the problem is the type of SessionFactory you are injecting in EmployeeDaoImpl does not match with the type of the SessionFactory you used in the class.

    Can you check it?

提交回复
热议问题