当遇到 org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'bookJoinServiceImpl': Unsatisfied dependency expressed through field 'baseMapper'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.library.backend.mapper.mapper_join.BookMapperJoin' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)} 问题时,解决办法:
检查对应的 service 注解 或 mapper注解是否写在对应的类或接口上