課程
/后端開發
/Java
/Springboot + ElasticSearch 構建博客檢索系統
Elasticsearch exception [type=json_parse_exception, reason=Current token (VALUE_NUMBER_INT) not of boolean type
2020-06-04
源自:Springboot + ElasticSearch 構建博客檢索系統 5-5
正在回答
錯誤原因:當前最新版springboot 2.4.0 相匹配的spring-boot-starter-data-elasticsearch支持的是elasticsearch 7.x.x版本 然而本門課程使用的是6.3.2?
解決方法:
方法一:升級elasticsearch到7.x.x版本
方法二:使用過去的springboot版本 我嘗試了2.2.0.RELEASE 這個錯誤就不再出現了 推薦此方法因為比較容易修改只需更新pom.xml
<parent>???? <groupId>org.springframework.boot</groupId>???? <artifactId>spring-boot-starter-parent</artifactId>???? <version>2.2.0.RELEASE</version>???? <relativePath/> <!-- lookup parent from repository --></parent>
<parent>
???? <groupId>org.springframework.boot</groupId>
???? <artifactId>spring-boot-starter-parent</artifactId>
???? <version>2.2.0.RELEASE</version>
???? <relativePath/> <!-- lookup parent from repository -->
</parent>
舉報
Springboot + ElasticSearch 構建個人博客檢索系統
13 回答Elasticsearch exception [type=json_parse_exception, reason=Current token (VALUE_NUMBER_INT) not of boolean type這是什么原因引起的、請教
1 回答創建索引未響應是什么原因呢,要如何解決
1 回答為什么不能引用elasticsearch?
1 回答logstash -f ../config/mysql.conf報錯異常怎么解決
1 回答服務透明化是什么意思?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2020-11-24
錯誤原因:當前最新版springboot 2.4.0 相匹配的spring-boot-starter-data-elasticsearch支持的是elasticsearch 7.x.x版本 然而本門課程使用的是6.3.2?
解決方法:
方法一:升級elasticsearch到7.x.x版本
方法二:使用過去的springboot版本 我嘗試了2.2.0.RELEASE 這個錯誤就不再出現了 推薦此方法因為比較容易修改只需更新pom.xml