this.无法调用父类HibernateDaoSupport的getHibernateTemplate()

来源:5-3 编写DAO的代码-Spring整合Hibernate

FloatingShuYin

2016-10-11 21:00

ERROR - Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'productService' defined in class path resource [spring.xml]: Cannot resolve reference to bean 'productDao' while setting bean property 'productDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'productDao' defined in class path resource [spring.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'sessionFatory' of bean class [cn.star.ssh.dao.ProductDao]: Bean property 'sessionFatory' is not writable or has an invalid setter method. Did you mean 'sessionFactory'?


写回答 关注

1回答

  • qq_昼绽_0
    2016-10-12 15:56:11
    已采纳

    sessionFatory改成sessionFactory

    Floati...

    非常感谢!

    2016-10-13 13:45:22

    共 1 条回复 >

基于SSH实现员工管理系统之框架整合篇

本视频教程主要介绍环境搭建和SSH框架整合,逐层深入理解学习

49832 学习 · 344 问题

查看课程

相似问题