org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.cy.wang.service.XXXX' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
导致这个异常的原因是因为中找不到相应的bean类
只需要在XXXXX的子类XXXXXXXImpl实现类添加@Service注解即可.