首页 > 解决方案 > spring data elasticsearch更新到3.0.7

问题描述

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

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)

标签: springspring-mvcelasticsearchjava-8spring-data-elasticsearch

解决方案


您应该使用 release-train 依赖项。这样,一切都是同步的。

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


推荐阅读