spring - 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)
解决方案
您应该使用 release-train 依赖项。这样,一切都是同步的。
推荐阅读
- javascript - 在 HTML 中加载 CSV 自动加载相同的文件
- java - 在 Java 中设置字体时出现空指针异常
- python - Python 多处理池创建的进程比指定的多
- or-tools - Google OR-Tools:具有多种货物类型和容量的 CVRP
- powershell - 通过带有变量传输的脚本创建 Powershell 脚本
- kubernetes-helm - 如何定义开始顺序
- node.js - 如何模拟适用于 Node.js 的 AWS SDK v3?
- postgresql - 错误:功能 geography_eq 的权限被拒绝
- javascript - Dragula 已导入但无法正常工作。拉拉维尔
- reactjs - 如何在 NextJS 上插入查询字符串