问答详情
源自:4-3 配置Action,Service,Dao的类-Struts2整合Spring

求大神解决

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'productService' defined in class path resource [applicationContext.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 [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: 'sessionFactory' or 'hibernateTemplate' is requiredhttp://img.mukewang.com/58dbca610001205e07320161.jpg是哪里错了?

提问者:慕粉2056577941 2017-03-29 22:53

个回答

  • 仁夏
    2017-04-10 09:49:25

    你的项目少导入了aspectjweaver.jar包,导入就可以了