ITPub博客

首页 > 应用开发 > > ssm整合报的错误

ssm整合报的错误

作者:m53469 时间:2019-08-16 15:52:32 0 删除 编辑

严重: 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

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

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/2819/viewspace-3135115/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-04-19

  • 博文量
    80
  • 访问量
    13440