2014-05-22 2 views
2

스프링 데이터 jpa는 스프링 코어 버전 3과 완전히 호환됩니까? JPA 리포지토리를 사용할 때 문제가 있습니다.스프링 데이터 jpa는 스프링 코어 버전 3과 함께 작동합니다

나는 spring-data-jpa 버전 1.6.0과 spring-core 3.1.0 버전을 사용한다.

구성 클래스에서 @EnableJpaRepositories를 사용할 때 다음 오류가 발생합니다.

Exception in thread "main" java.lang.IllegalArgumentException: ResourceLoader must not be null! 
at org.springframework.util.Assert.notNull(Assert.java:112) 
at org.springframework.data.repository.config.RepositoryBeanDefinitionRegistrarSupport.registerBeanDefinitions(RepositoryBeanDefinitionRegistrarSupport.java:65) 
at org.springframework.context.annotation.ConfigurationClassParser.processImport(ConfigurationClassParser.java:295) 
at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:208) 
at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:138) 
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:126) 
at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:233) 
at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:178) 
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:617) 
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:446) 
at org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:73) 
+1

스프링 데이터 JPA 1.6.0 내가 봄 3.2, 틀리지 않는 경우, 필요로하며, 봄 4.0와 함께 작동합니다. Spring 3.1 이전 버전에서는 작동하지 않을 수도 있습니다. –

답변

관련 문제