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
时间: 2024-10-31 18:37:56