I'm trying to use spring data and spring config together in a small standalone application.

```
...
  public static void main( String[] args )
  {        
    ApplicationContext ctx = new AnnotationConfigApplicationContext(AppConfig.class);
    ... 
  }

```

**1.** My question is how can I discover the spring data repositories without using 

```
<jpa:repositories base-package="foo.repositories" />

```

by spring config ?

**2.** If not, can I use 'ClassPathXmlApplicationContext' and 'AnnotationConfigApplicationContext' together somehow ?