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
by spring config ?
**2.** If not, can I use 'ClassPathXmlApplicationContext' and 'AnnotationConfigApplicationContext' together somehow ?
以上就是Scanning Spring Data repositories by Spring Config?的详细内容,更多请关注web前端其它相关文章!