当Spring Boot项目运行出现以下错误
Error creating bean with name 'appblacklistServiceImpl': Unsatisfied dependency expressed through field 'baseMapper'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.hx.mapper.AppblacklistMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
解决方法
查看Spring Boot启动类是否写了
@MapperScan("com.hx.mapper") //编译之后会生成相应的接口实现类