学习搭建 maven多项目+spring+mybatis项目 的时候,启动遇到下面错误
错误内容:
org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.jh.happy.mapper.UserMapper] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
项目框架:
spring-mvc配置:
spring-mybatis.xml:
UserMapper:
UserMapper.xml:
UserServiceImp:
麻烦各位看一下,谢谢了