title: Why is spring boot not finding my beans?
body: <p>i have following error:</p>
  
  <pre><code>Parameter 0 of constructor in com.yyy.zzz.xxx.service.ControlService required a bean of type 'com.yyy.zzz.xxx.service.composeXML.ComposeCounterService' that could not be found.
  </code></pre>
  
  <p>Usually this is because i forget to annotate either the Service or
  the interface, but i've been looking classes the whole morning and cant find
  any missing annotations..</p>
  
  <p>interface at this point is just:</p>
  
  <pre><code>@Component
  public interface ComposeCounterService {
  CLASSX init(List&lt;YYY&gt; owners) throws JAXBException;
  }
  </code></pre>
  
  <p>and implimenting service is as follows, and contains init() method if that matters in this case.</p>
  
  <pre><code>@Service
  public class ComposeCounterImpl implements ComposeCounterService {
  /*** loots of code
  }
  </code></pre>
  
  <p>and ApplicationConfig file is located one level above the service package. marked xxx in this post.</p>
  
  <p>It contains the following package scan:</p>
  
  <pre><code>@SpringBootApplication
  scanBasePackages = {"com.yyy.zzz.xxx")
  </code></pre>
  
  <p>i also tried it with array of scans like:</p>
  
  <pre><code>scanBasePackages = {"com.yyy.zzz.xxx", "com.yyy.zzz.xxx.service.composeXML"})
  </code></pre>
  
  <p>and without the composeXML after .service
  None of these works.</p>
  
  <p>im pretty sure im missing something here, please send help.</p>
  
  <p>EDIT:
  injecting style:</p>
  
  <pre><code>private final ComposeCounterService composeCounterService;
  
  public ControlService(ComposeCounterService composeCounterService) {
      this.composeCounterService = composeCounterService;
  }
  </code></pre>