Hoxton019030 / comment

0 stars 0 forks source link

¡SpringBoot整合ElasticSearch #117

Open Hoxton019030 opened 5 months ago

Hoxton019030 commented 5 months ago

https://hoxtonhsu.com/p/springboot%E6%95%B4%E5%90%88elasticsearch/

​ 延續上一篇 本文會用到的連結 How to Integrate Elastic Search With Spring Boot CRUD Project| Spring Boot | Elasticsearch| EnggAdda 這東西的坑真的很多 springBoot Elastic Search 還有相關的套件版本必須一致 版本設置與Maven Elastic Search & Kibana 版本 我個人使用的設置如下 Elastic Search: 8.13.2 Kibana:8.13.2 Maven 1 2 3 4 5 6 7 8 9 10 11 <dependency> <groupId>org.elasticsearch.client</groupId> <artifactId>elasticsearch-rest-high-level-client</artifactId> <version>7.4.0</version> <exclusions> <exclusion> <artifactId>log4j-api</artifactId> <groupId>org.apache.logging.log4j</groupId> </exclusion> </exclusions> </dependency> SprignBoot版本 SpringBoot:3.2.5 SpringBoot與Elastic連線設定 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 import org.