title: The dependencies of some of the beans in the application context form a cycle
body: <p>I'm working on a Spring Boot v1.4.2.RELEASE application with JPA.</p>
  
  <p>I defined repository interfaces and implementations</p>
  
  <p><strong>ARepository</strong></p>
  
  <pre><code>@Repository
  public interface ARepository extends CrudRepository&lt;A, String&gt;, ARepositoryCustom, JpaSpecificationExecutor&lt;A&gt; {
  }
  </code></pre>
  
  <p><strong>ARepositoryCustom</strong> </p>
  
  <pre><code>@Repository
  public interface ARepositoryCustom {
      Page&lt;A&gt; findA(findAForm form, Pageable pageable);
  }
  </code></pre>
  
  <p><strong>ARepositoryImpl</strong></p>
  
  <pre><code>@Repository
  public class ARepositoryImpl implements ARepositoryCustom {
      @Autowired
      private ARepository aRepository;
      @Override
      public Page&lt;A&gt; findA(findAForm form, Pageable pageable) {
          return aRepository.findAll(
                  where(ASpecs.codeLike(form.getCode()))
                  .and(ASpecs.labelLike(form.getLabel()))
                  .and(ASpecs.isActive()),
                  pageable);
      }
  }
  </code></pre>
  
  <p>And a service
  <strong>AServiceImpl</strong></p>
  
  <pre><code>@Service
  public class AServiceImpl implements AService {
      private ARepository aRepository;
      public AServiceImpl(ARepository aRepository) {
          super();
          this.aRepository = aRepository;
      }
      ...
  }
  </code></pre>
  
  <p>My application won't start with the message :</p>
  
  <pre>
  ***************************
  APPLICATION FAILED TO START
  ***************************
  
  Description:
  
  The dependencies of some of the beans in the application context form a cycle:
  
  |  aRepositoryImpl
  └─────┘
  </pre>
  
  <p>I followed all steps discribed in <a href="http://docs.spring.io/spring-data/jpa/docs/current/reference/html/#repositories.single-repository-behaviour" rel="noreferrer">http://docs.spring.io/spring-data/jpa/docs/current/reference/html/#repositories.single-repository-behaviour</a></p>
  
  <p>Please help !</p>
  
  <p>Laurent</p>