您的位置: 首页 > 文章 > elasticsearch集成springboot启动报错org.springframework.beans.factory.UnsatisfiedDependencyException: Error elasticsearch集成springboot启动报错org.springframework.beans.factory.UnsatisfiedDependencyException: Error 分类: 文章 • 2024-09-18 11:54:34 elasticsearch集成springboot启动报错org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘sysLogController’ defined 仔细看错误信息,es里面已经存在相同的索引,但是字段或者字段类型不一致 【解决方法】 1、删除es中已经存在的相同的索引,重新创建 索引,重新创建 2、使用GET /index/_mapping查询es中已经存在的索引的映射信息,按照映射信息修改要创建的索引字段