将spring data elasticsearch更新为3.0.7

时间:2018-06-18 13:36:31

标签: spring spring-mvc elasticsearch java-8 spring-data-elasticsearch

我已将spring数据elasticsearch更新到3.0.7版 我想知道我是否还应该更新spring核心版本,因为在runnig我的项目抛出异常之后

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'restParametrageCompetenceController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: ma.accolade.ged.ms.gestion.parametrage.service.CompetenceService ma.accolade.ged.ms.gestion.parametrage.controller.RestParametrageCompetenceController.competenceService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'CompetenceService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: ma.accolade.ged.ms.gestion.parametrage.persistance.CompetencePersistance ma.accolade.ged.ms.gestion.parametrage.service.impl.CompetenceImpl.competenceRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'competencePersistance': Initialization of bean failed; nested exception is java.lang.AbstractMethodError
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)

1 个答案:

答案 0 :(得分:0)

您应该使用发布列车依赖项。这样一切都是同步的。

http://projects.spring.io/spring-data/#quick-start