Error creating bean with name 'adminServiceImpl': Unsatisfied dependency expressed through field 'baseMapper'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.atguigu.myzhxy.mapper.AdminMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
上次做Spring boot的时候遇见了这个问题,百度了好久也没有解决问题
问题的本质就是Mapperscan 没有被扫到你的Mapper
解决办法:
找到你的Config文件,检查mapperscan里的mapper跟你的项目名字是否相同,修改后运行成功