org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘articleServiceImpl’: Unsatisfied dependency expressed through field ‘baseMapper’; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘com.spark.mapper.ArticleMapper’ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
很大程度就是因为你启动类没加mapper扫描类