SpringMVC+Mybatis报SqlSessionTemplate错误

图片说明
错误提示
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.