第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定

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這是什么原因引起的、請教

正在回答

13 回答

確保elastic search 和 springboot的版本匹配。??

低版本的springboot, 需要在@document 中加屬性 type="_doc"

0 回復(fù) 有任何疑惑可以回復(fù)我~

<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-elasticsearch</artifactId> <version>2.2.0.RELEASE</version> </dependency> 這邊改成2.2.0,親測有效。

0 回復(fù) 有任何疑惑可以回復(fù)我~

需要版本保持一致,比如說springboot使用的是2.2.0.RELEASE,看一下對員工的elasticsearch對應(yīng)的版本,比如是:6.8.3 那么你安裝的elastic的版本必須和這個保持一致,或者你修改springboot的版本。確保兩者一致 就沒問題

0 回復(fù) 有任何疑惑可以回復(fù)我~

錯誤原因:當(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

<parent>

???? <groupId>org.springframework.boot</groupId>

???? <artifactId>spring-boot-starter-parent</artifactId>

???? <version>2.2.0.RELEASE</version>

???? <relativePath/> <!-- lookup parent from repository -->

</parent>


3 回復(fù) 有任何疑惑可以回復(fù)我~
#1

慕婉清秋

1、升級版本的話,各種用到的版本都要對應(yīng)一致這個麻煩,沒有試過,不知道是否可行; 2、改成2.2.0版本也依然無效,還是會報這個錯誤。
2021-05-13 回復(fù) 有任何疑惑可以回復(fù)我~
#2

慕婉清秋 回復(fù) 慕婉清秋

<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-elasticsearch</artifactId> <version>2.2.0.RELEASE</version> </dependency> 這邊改成2.2.0,親測有效。
2021-05-13 回復(fù) 有任何疑惑可以回復(fù)我~

我也遇到了,完全沒法解決

0 回復(fù) 有任何疑惑可以回復(fù)我~

springboot版本問題,使用2.2.0可以正常運行

1 回復(fù) 有任何疑惑可以回復(fù)我~

這個問題怎么解決呀? 有人解決了了嗎

0 回復(fù) 有任何疑惑可以回復(fù)我~

這個問題應(yīng)該是Spring boot版本問題 ,目前使用idea自動搭建的Spring項目中,Spring boot版本是2.3.1,這個版本的應(yīng)該和視頻中的版本不匹配? 大家可以試試使用2.2.0版本就可以解決了

1 回復(fù) 有任何疑惑可以回復(fù)我~

老師在這一節(jié),EsBlog實體類上的@Document注解的type屬性,寫的是doc,要寫成_doc,再重新跑就可以了

0 回復(fù) 有任何疑惑可以回復(fù)我~

同求,有人解決了嗎

0 回復(fù) 有任何疑惑可以回復(fù)我~
首頁上一頁12下一頁尾頁

舉報

0/150
提交
取消

Elasticsearch exception [type=json_parse_exception, reason=Current token (VALUE_NUMBER_INT) not of boolean type這是什么原因引起的、請教

我要回答 關(guān)注問題
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號