SpringBoot annotation based configuration
In Spring core when you want to inject a dependency, we generally use @Component annotation with the class that is suppose to inject an object. And we use @Autowired with the declaration of that reference in the service class. But I am learning SpringBoot recently and there I could see @Autowired annotation but the class that should inject is annotated with @Service instead. Is there a contract between @Service and @Autowired just like it is with @Component and @Autowired?