参考: SpringBoot集成Elasticsearch7.4 实战(一) 非常值得一看 SpringBoot集成Elasticsearch7.4 实战(二) SpringBoot集成Elasticsearch7.4 实战(三)