异常
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sysDeptServiceImpl': Unsatisfied dependency expressed through field 'baseMapper'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'edu.forever.mapper.SysDeptMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
org.springframework.beans.factory.UnsatisfiedDependencyException:创建名称为'sysDeptServiceImpl'的bean时出错:通过字段'baseMapper'表示不满意的依赖;嵌套异常是org.springframework.beans.factory.NoSuchBeanDefinitionException:没有类型为'edu.forever.mapper的合格bean。SysDeptMapper' available:预期至少有1个bean符合自动候选资格。依赖注解:{@org.springframework.beans.factory.annotation.Autowired(required=true)}
解决
没有扫描到mapper包
解决问题来源:http://t.csdn.cn/V98la