毕业后做的C,java都忘了,想复习下,搭个简单的框架都搞不定了
大虾们 知道这是什么地方错了吗?
Error creating bean with name 'testSSHDaoImpl' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: 'sessionFactory' or 'hibernateTemplate' is required
初步判断是spring错的,但是就是看不出来,求指教
------解决方案--------------------------------------------------------
初步估计testSSHDaoImpl类没有继承HibernateDaoSupport ! 建议你贴代码,让大虾们详细看看吧!
------解决方案--------------------------------------------------------
把相关代码贴出来,然后把报的错误也贴出来,就这么一点信息很难分析原因的
------解决方案--------------------------------------------------------
spring 中没有配置 SessionFactory 导致的