No qualifying bean of type ‘com.icompanybar.programmer.service.AnnounceService‘ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
报这样的错一般是因为自己的service没有注解@Service,所以找不到,这时候查看自己的service层的实现类上面有没有注解@Service
No qualifying bean of type ‘********’available: expected at least
原文:https://www.cnblogs.com/yulinchu/p/12741472.html