es配置


1.下载es与插件head到本地,添加pom依赖(https://blog.csdn.net/sinat_42338962/article/details/85227902)



org.elasticsearch.client
elasticsearch-rest-high-level-client
7.8.0


org.elasticsearch
elasticsearch





org.elasticsearch
elasticsearch
7.8.0




org.apache.logging.log4j
log4j-api
2.8.2


org.apache.logging.log4j
log4j-core
2.8.2

2.启动es与插件
3.删除es中所有数据:curl -X DELETE http://localhost:9200/_all
es