No qualifying bean of type [com.bluecard.service.DbService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
原因 :自动注入的时候,找不到对应的bean
原因是:对应要注入的实现类没有 加注解,如dao层@Repository 如service层 @Service