错误提示
Error creating bean with name 'testController':
Injection of autowired dependencies failed;
nested exception is org.springframework.beans.factory.BeanCreationException:
Could not autowire field: public zh.ityuan.service.UserService zh.ityuan.controller.TestController.userService;
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'userServiceImpl':
Injection of autowired dependencies failed;
nested exception is org.springframework.beans.factory.BeanCreationException:
Could not autowire field: public zh.ityuan.dao.impl.UserMapperImpl zh.ityuan.service.impl.UserServiceImpl.userMapper;
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'userMapperImpl':
Injection of autowired dependencies failed;
nested exception is org.springframework.beans.factory.BeanCreationException:
Could not autowire method:
public void zh.ityuan.dao.impl.UserMapperImpl.setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate);
nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException:
No qualifying bean of type [org.mybatis.spring.SqlSessionTemplate] found for dependency:
expected at least 1 bean which qualifies as autowire candidate for this dependency.
SpringMVC+Mybatis报SqlSessionTemplate错误
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
0条回答 默认 最新
悬赏问题
- ¥15 多电路系统共用电源的串扰问题
- ¥15 shape_predictor_68_face_landmarks.dat
- ¥15 slam rangenet++配置
- ¥15 有没有研究水声通信方面的帮我改俩matlab代码
- ¥15 对于相关问题的求解与代码
- ¥15 ubuntu子系统密码忘记
- ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
- ¥15 保护模式-系统加载-段寄存器
- ¥15 电脑桌面设定一个区域禁止鼠标操作
- ¥15 求NPF226060磁芯的详细资料