首页 > 代码库 > ssh整合出现的错误

ssh整合出现的错误

1.org.springframework.beans.NotWritablePropertyException: Invalid property ‘sessionFactory‘ of bean class [dao.impl.UserDaoImpl]: Does the parameter type of the setter match the return type of the getter?

dao需继承 HibernateDaoSupport,用JdbcTempalte或HibernateTempalte操作数据库。

2.‘sessionFactory‘ or ‘hibernateTemplate‘ is required

需将sessionFactory注入dao

ssh整合出现的错误