67,549
社区成员




@Component
public class ESClientUtil
{
// 定义集群名称
private static String name;
// 定义定义访问es集群的ip地址
private static String hosts;
// 定义访问es集群的端口号
private static String port;
// 超时时间
private static String timeout;
// 创建私有对象
private static Client client;
static
{
// 获取 静态变量值,组装 client对象
}
}