Document字段发生变化后,报的错

本文涉及的产品
Elasticsearch Serverless通用抵扣包,测试体验金 200元
简介: 2016-10-11 15:27:47,828 [ERROR] [main] SpringApplication:838 - Application startup failedorg.springframework.

 

2016-10-11 15:27:47,828 [ERROR] [main] SpringApplication:838 - Application startup failed
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'userBiz':
Unsatisfied dependency expressed through field 'userRepository':
Error creating bean with name 'userRepository':
Invocation of init method failed;
nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: Mapper for [name] conflicts with existing mapping in other types:
[mapper [name] has different [store] values, mapper [name] has different [analyzer]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userRepository': Invocation of init method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: Mapper for [name] conflicts with existing mapping in other types:
[mapper [name] has different [store] values, mapper [name] has different [analyzer]]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:569)


 

相关实践学习
以电商场景为例搭建AI语义搜索应用
本实验旨在通过阿里云Elasticsearch结合阿里云搜索开发工作台AI模型服务,构建一个高效、精准的语义搜索系统,模拟电商场景,深入理解AI搜索技术原理并掌握其实现过程。
ElasticSearch 最新快速入门教程
本课程由千锋教育提供。全文搜索的需求非常大。而开源的解决办法Elasricsearch(Elastic)就是一个非常好的工具。目前是全文搜索引擎的首选。本系列教程由浅入深讲解了在CentOS7系统下如何搭建ElasticSearch,如何使用Kibana实现各种方式的搜索并详细分析了搜索的原理,最后讲解了在Java应用中如何集成ElasticSearch并实现搜索。  
相关文章
|
Java
报错:java: 不兼容的类型: java.lang.String无法转换为int解决办法
这里遇到的问题是在scanner键盘输入时候进行了一个报错:java: 不兼容的类型: java.lang.String无法转换为int
2054 1
报错:java: 不兼容的类型: java.lang.String无法转换为int解决办法
|
8月前
|
测试技术 API 开发者
通义千问Qwen2.5-Max登上大模型盲测榜单全球前十,数学及编程能力夺冠
通义千问Qwen2.5-Max登上大模型盲测榜单全球前十,数学及编程能力夺冠
|
存储 Java 数据库
Elasticsearch自定义时间格式
Elasticsearch自定义时间格式
294 0
|
数据采集 机器学习/深度学习 人工智能
云栖实录 | GenAI 时代 AI Infra 工程技术趋势与平台演进
本文根据2024云栖大会实录整理而成,演讲信息如下: 演讲人:林伟 | 阿里云智能集团研究员、阿里云人工智能平台 PAI 负责人;黄博远|阿里云智能集团资深产品专家、阿里云人工智能平台 PAI 产品负责人 活动:2024 云栖大会 - AI Infra 核心技术专场、人工智能平台 PAI 年度发布专场
|
SQL JavaScript 分布式数据库
使用Vue+ ECharts进行动态图表展示
Vue是一个用于构建用户界面的渐进式JavaScript框架,可以轻松构建单页面应用程序(SPA)。ECharts是一个基于JavaScript的数据可视化库,可以通过简单的配置实现各种图表的展示和交互。
860 0
|
开发框架 前端开发 Java
SpringBoot简介&IDEA在线创建一个SpringBoot项目
SpringBoot 项目创建有三种方式,分别是在线创建、使用Spring initializr快速创建、和改造Maven工程创建,本期讲的就是如何在线创建一个SpringBoot项目。首先我们要下载好IntelliJ IDEA以及jdk1.8版本。springboot 是 spring 快速开发脚手架,通过约定大于配置的方式,快速构建和启动 spring 项目. springboot根据我们项目中所引入的依赖,比如引入了springmvc构件,就会判断出是要进行springmvc的web开发,就会把spr
822 1
|
存储 easyexcel Java
|
前端开发
在vue2的style标签中使用css变量
在vue2的style标签中使用css变量
351 0
makefile 条件判断语句
makefile 条件判断语句
265 0

热门文章

最新文章