title: Spring boot 1.2.1 No qualifying bean of type found for dependency
body: <p>I have upgraded from spring boot version 1.1.5 to 1.2.1 and now I get <code>NoSuchBeanDefinitionException</code>. </p>
  
  <p>I have simple main class</p>
  
  <pre><code>@Configuration
  @ComponentScan
  @EnableAutoConfiguration
  public class Application {
  
      public static void main(String[] args) {
          SpringApplication.run(Application.class, args);
      }
  
  }
  </code></pre>
  
  <p>and later I have repo</p>
  
  <pre><code>@Repository
  public interface UserRepository extends MongoRepository&lt;User, String&gt;, UserRepositoryCustom {
  
     ...
  
  
  }
  </code></pre>
  
  <p>custom repo</p>
  
  <pre><code>public interface UserRepositoryCustom {
      // custom methods
  }
  </code></pre>
  
  <p>and impl class.</p>
  
  <p>Before updating spring boot version to 1.2.1 everything was working as expected.
  I have read <a href="https://github.com/spring-projects/spring-boot/issues/2237" rel="nofollow">https://github.com/spring-projects/spring-boot/issues/2237</a> and tried to remove <code>@Repository</code> annotation but without success. 
  Am I missing something?
  Thnx for help</p>
  
  <p>EDIT stacktrace:</p>
  
  <pre><code>Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.example.respositories.UserRepository] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:1308)
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1054)
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:949)
      at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:813)
      at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
  </code></pre>