title: Scanning Spring Data repositories by Spring Config?
body: <p>I'm trying to use spring data and spring config together in a small standalone application.</p>
  
  <pre><code>...
    public static void main( String[] args )
    {        
      ApplicationContext ctx = new AnnotationConfigApplicationContext(AppConfig.class);
      ... 
    }
  </code></pre>
  
  <p><strong>1.</strong> My question is how can I discover the spring data repositories without using </p>
  
  <pre><code>&lt;jpa:repositories base-package="foo.repositories" /&gt;
  </code></pre>
  
  <p>by spring config ?</p>
  
  <p><strong>2.</strong> If not, can I use 'ClassPathXmlApplicationContext' and 'AnnotationConfigApplicationContext' together somehow ?</p>