title: Spring get bean without implementation
body: <p>I try do all things as here </p>
  
  <p><a href="https://spring.io/guides/gs/accessing-data-jpa/" rel="nofollow">https://spring.io/guides/gs/accessing-data-jpa/</a></p>
  
  <p>But i get error, when try repeat this line </p>
  
  <pre><code> ConfigurableApplicationContext context = SpringApplication.run(Application.class);
  </code></pre>
  
  <p>in my app this seems so</p>
  
  <pre><code>@Autowired
  private ConfigurableApplicationContext appContext;
  </code></pre>
  
  <p>error that i get when call getBean function</p>
  
  <pre><code>org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [ru.tcsbank.target.core.service.TestRepository] is defined: expected single bean but found 0: 
  </code></pre>
  
  <p>What is the problem with this example?</p>