title: getting @autowired intance null when try trying to do operation on it,throwing null pointer exception
body: <p>I am trying to save data on gemfire using crud repository. I have created one operation class to call save method of repository but at autowired instance I am getting null pointer exception. Below is my code:</p>
  
  <pre class="lang-java prettyprint-override"><code>public interface GeodeRepository extends CrudRepository&lt;KeyValueBean, String&gt; {
  
      @Override
      public KeyValueBean findOne(String name);
  
      @Override
      public &lt;S extends KeyValueBean&gt; Iterable&lt;S&gt; save(Iterable&lt;S&gt; entities);
  }
  
  @EnableGemfireRepositories(basePackageClasses = GeodeRepository.class)
  @EnableAutoConfiguration
  @Configuration
  public class Operations {
  
      @Autowired
      private GeodeRepository repository;
  
      public void saveKeyValueData(KeyValueBean keyValueBean) {
          System.out.println("Repository is : " + repository);
          repository.save(Arrays.asList(keyValueBean)); // &lt;--- i am getting
                                                          // repository as null so
                                                          // getting null pointer
                                                          // exception
      }
  }
  </code></pre>