pom.xml中添加client jar包

<dependency>
<groupId>org.elasticsearch.client</groupId>
<artifactId>transport</artifactId>
<version>5.2.2</version>
</dependency>

原文地址:https://www.cnblogs.com/songyunxinQQ529616136/p/6649682.html