title: Spring expected at least 1 bean which qualifies as autowire candidate for this dependency
body: <p>I have a trouble with this Autowire:</p>
  
  <pre><code>@Controller
  public class ChiusuraController {
  
      @Autowired
      private ChiusuraProvider chiusuraProvider;
  }
  </code></pre>
  
  <p>with this bean:</p>
  
  <pre><code>@Service @Transactional
  public class ChiusuraProvider extends ThreadProvider {
  
  
      public void run() {}
  }
  </code></pre>
  
  <p>that extends</p>
  
  <pre><code>public abstract class ThreadProvider extends Thread implements InitializingBean, Runnable, DisposableBean {
  ...
  }
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'chiusuraController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.cinebot.service.ChiusuraProvider com.cinebot.web.controller.ChiusuraController.chiusuraProvider; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [com.cinebot.service.ChiusuraProvider] 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)}
  </code></pre>
  
  <p>I saw that I did not get this error if I remove  <strong>extends ThreadProvider</strong>  of autowired class, but I really need ThreadProvider abstract class.</p>