首页 新闻 会员 周边

ssm整合报的错误

0
悬赏园豆:5 [已解决问题] 解决于 2019-08-07 19:59

严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private cn.sxt.service.UserService cn.sxt.controller.UserController.userService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private cn.sxt.dao.UserDao cn.sxt.service.impl.UserServiceImpl.userDao; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao' defined in file [D:\workspace2my.metadata.me_tcat\webapps\ssm\WEB-INF\classes\cn\sxt\dao\impl\UserDaoImpl.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required

谁能翻译下,看看这个到底是哪里的错误啊,搞了两天了,到底是哪个类或者是哪个配置文件有问题啊?英语差看不懂

键盘小侠的主页 键盘小侠 | 初学一级 | 园豆:175
提问于:2019-08-07 16:05
< >
分享
最佳答案
0

百度翻译一下不就行了:
userDao初始化错误,需要属性“sqlsessionFactory”或“sqlsessionTemplate”

收获园豆:5
小光 | 小虾三级 |园豆:1766 | 2019-08-07 17:10
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册