title: Create Custom Repository to Spring Data JPA
body: <p>I try to create a <code>custom repository</code> by following this tutorial: <a href="https://www.baeldung.com/spring-data-jpa-method-in-all-repositories" rel="nofollow noreferrer">https://www.baeldung.com/spring-data-jpa-method-in-all-repositories</a></p>
  
  <p>My app build fail with error: </p>
  
  <pre><code>NoSuchBeanDefinitionException: No qualifying bean of type 'com.example.demo.dao.ExtendedStudentRepository' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
  </code></pre>
  
  <p>My full source code:
  <a href="https://github.com/sesong11/springjpa-custom-repo" rel="nofollow noreferrer">https://github.com/sesong11/springjpa-custom-repo</a></p>
  
  <p>There are plenty of similar questions, but none of them fixed for me. Perhaps it's Spring issue on current version 2.1.1, or I missed some configuration.</p>