小さなスタンドアロンアプリケーションでSpringデータとSpring構成を一緒に使用しようとしています。
...
public static void main( String[] args )
{
ApplicationContext ctx = new AnnotationConfigApplicationContext(AppConfig.class);
...
}
1.私の質問は、使用せずにSpringデータリポジトリを見つけるにはどうすればよいかということです。
<jpa:repositories base-package="foo.repositories" />
春の設定で?
2.そうでない場合は、「ClassPathXmlApplicationContext」と「AnnotationConfigApplicationContext」を一緒に使用できますか?