title: Apache Ignite with Spring Boot CrudRepo cannot be initialized
body: <p>I am trying to set up a small Ignite application using a IgniteCrudRepository.</p>
  
  <p>Since the current stable version 2.6.0 has issues with spring data integration (<a href="https://issues.apache.org/jira/browse/IGNITE-6879" rel="nofollow noreferrer">https://issues.apache.org/jira/browse/IGNITE-6879</a>) I am using the latest nighty build of 2.7.0.</p>
  
  <p>When I try to start the application it fails with the following exception:</p>
  
  <pre><code>org.apache.ignite.IgniteException: Failed to initialize Ignite repository factory. Ignite instance or IgniteConfiguration or a path to Ignite's spring XML configuration must be defined in the application configuration
  </code></pre>
  
  <p>But in my spring boot application I do create an Ignite bean and in the debug logs I see that spring knows about that bean.</p>
  
  <pre><code>Eagerly caching bean 'ignite' to allow for resolving potential circular reference
  </code></pre>
  
  <p>My spring boot application class looks like this:</p>
  
  <pre><code>@SpringBootApplication
  @EnableIgniteRepositories
  @Configuration
  public class MyApplication {
  
      public static void main(String[] args) {
          SpringApplication.run(MyApplication.class, args);
      }
  
      @Bean
      Ignite ignite(){
  
          IgniteConfiguration configuration = new IgniteConfiguration();
          configuration.setIgniteInstanceName("myApp");
          configuration.setPeerClassLoadingEnabled(true);
          CacheConfiguration&lt;Integer, Page&gt; cache = new CacheConfiguration&lt;&gt;("pageCache");
          cache.setIndexedTypes(Integer.class, Page.class);
          configuration.setCacheConfiguration(cache);
  
          return Ignition.start(configuration);
      }
  }
  </code></pre>
  
  <p>The repo is defined like this:</p>
  
  <pre><code>import org.apache.ignite.springdata20.repository.IgniteRepository;
  
  
  public interface PageRepository extends IgniteRepository&lt;Page, Integer&gt; {
  }
  </code></pre>
  
  <p>And injecting the Ignite bean into my controller also works, confirmed that by debugging into it. Implementation is of type IgniteKernal.</p>
  
  <p>So I do not get why the repository cannot be created as the required bean seems part of the application context. There is no additional xml or java configuration.</p>
  
  <p>I know 2.7.0 is not released yet and this might be a bug in the nightly build. But maybe someone had this issue before or has an idea how to fix this.</p>