求大神解决

来源:4-3 配置Action,Service,Dao的类-Struts2整合Spring

慕粉2056577941

2017-03-29 22:53

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是哪里错了?

写回答 关注

1回答

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

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

基于SSH实现员工管理系统之框架整合篇

本视频教程主要介绍环境搭建和SSH框架整合,逐层深入理解学习

49832 学习 · 344 问题

查看课程

相似问题