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這是什么原因引起的、請教
Elasticsearch exception [type=json_parse_exception, reason=Current token (VALUE_NUMBER_INT) not of boolean type這是什么原因引起的、請教
舉報
2023-01-28
先確保elastic search 和 springboot的版本匹配。??
低版本的springboot, 需要在@document 中加屬性 type="_doc"
2021-05-13
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-elasticsearch</artifactId> <version>2.2.0.RELEASE</version> </dependency> 這邊改成2.2.0,親測有效。
2021-01-25
需要版本保持一致,比如說springboot使用的是2.2.0.RELEASE,看一下對員工的elasticsearch對應(yīng)的版本,比如是:6.8.3 那么你安裝的elastic的版本必須和這個保持一致,或者你修改springboot的版本。確保兩者一致 就沒問題
2020-11-24
錯誤原因:當(dāng)前最新版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 這個錯誤就不再出現(xiàn)了 推薦此方法因為比較容易修改只需更新pom.xml
2020-09-08
我也遇到了,完全沒法解決
2020-08-08
springboot版本問題,使用2.2.0可以正常運行
2020-07-20
這個問題怎么解決呀? 有人解決了了嗎
2020-07-15
這個問題應(yīng)該是Spring boot版本問題 ,目前使用idea自動搭建的Spring項目中,Spring boot版本是2.3.1,這個版本的應(yīng)該和視頻中的版本不匹配? 大家可以試試使用2.2.0版本就可以解決了
2020-07-14
老師在這一節(jié),EsBlog實體類上的@Document注解的type屬性,寫的是doc,要寫成_doc,再重新跑就可以了
2020-07-14
同求,有人解決了嗎