请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

tomcat启动报错

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘userManageController’: Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.mmall.service.IUserService com.mmall.controller.backend.UserManageController.iUserService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘iUserService’: Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.mmall.dao.UserMapper com.mmall.service.impl.UserServiceImpl.userMapper; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘userMapper’ defined in file [/Users/kanrei/IdeaProjects/mmall/target/mmall/WEB-INF/classes/com/mmall/dao/UserMapper.class]: Unsatisfied dependency expressed through bean property ‘sqlSessionFactory’: : Error creating bean with name ‘sqlSessionFactory’ defined in class path resource [applicationContext-datasource.xml]: Invocation of init method failed;

代码都是跟着老师的来的,不知道为啥还会报错

正在回答 回答被采纳积分+3

1回答

geelylucky 2020-07-07 09:42:52

同学,检查一下applicationContext-datasource.xml这个配置文件,应该是数据库链接创建失败了。看看用户名密码,driver有没有写对

0 回复 有任何疑惑可以回复我~
  • 提问者 weixin_慕用7530111 #1
    老师,applicationContext-datasource.xml检查过了,应该没有问题,但还是报了一样的错误...
    回复 有任何疑惑可以回复我~ 2020-07-08 09:24:36

相似问题

登录后可查看更多问答,登录/注册

问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信