Invalid property ‘sessionFactory’ of bean class [com.study.crm.dao.impl.CustomerDaoImpl]: Bean property ‘sessionFactory’ is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
解决方案:在DaoImpl里继承HibernateDaoSupport