title: How using spring-boot-starter-jpa in custom spring-boot-starter?
body: <p>I have my custom starter. Inside it, I define a repository. How should I define it in the configuration?  This is how I did the usual bean before.</p>
  <pre><code>@Bean
  @ConditionalOnMissingBean(HelloWorldController.class)
  public HelloWorldController helloWorldController() {
      return new HelloWorldController();
  }
  </code></pre>
  <p>Repository:</p>
  <pre><code>@Repository
  public interface CarRepository extends JpaRepository&lt;Car, Long&gt; {
  }
  </code></pre>
  <p>And configuration</p>
  <pre><code>@Configuration
  @EnableJpaRepositories
  public class DomainConfiguration {
  }
  </code></pre>
  <p>If you use this starter, context will not see the repository bean. Because I did not declare it in the configuration.I don't know how to declare it.</p>