ES安裝使用問題

①linux 啓動es, 1)切換用戶 su命令(root用戶不能啓動) 2)bin目錄啓動(其他用戶可能沒有權限,sudo chown -R kf elasticsearch sudo chgrp -R kf elasticsearch )

②ES解決跨域問題 在config下的yml配置文件中添加:

http.cors.enabled: true
http.cors.allow-origin: "*"

③ES下出現 The bean 'userRepository', defined in null, could not be registered. A bean with that name has already been defined in file XXX and overriding is disabled.基於Herbinate的需要給實體類加上@Doucument

④ES下出現xxxRepository Bean已經存在問題 按照控制檯下的提示改錯。在yml中配置bean可覆蓋

spring:  

   main:  

        allow-bean-definition-overriding: true

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章