這是什么原因引起的異常,看不明白,請(qǐng)教
Elasticsearch exception [type=json_parse_exception, reason=Current token (VALUE_NUMBER_INT) not of boolean type
Elasticsearch exception [type=json_parse_exception, reason=Current token (VALUE_NUMBER_INT) not of boolean type
舉報(bào)
2020-11-24
錯(cuò)誤原因:當(dāng)前最新版springboot 2.4.0 相匹配的spring-boot-starter-data-elasticsearch支持的是elasticsearch 7.x.x版本 然而本門(mén)課程使用的是6.3.2?
解決方法:
方法一:升級(jí)elasticsearch到7.x.x版本
方法二:使用過(guò)去的springboot版本 我嘗試了2.2.0.RELEASE 這個(gè)錯(cuò)誤就不再出現(xiàn)了 推薦此方法因?yàn)楸容^容易修改只需更新pom.xml