suxiaoyang 1164851911 ES完善配置信息 преди 6 години
..
src 1164851911 ES完善配置信息 преди 6 години
pom.xml fb104b763b es преди 6 години
readme.md 1935c29bea readme преди 6 години

readme.md

  1. 该公共包提供了transport和jest的ES服务接口
  2. 如果只需要transport请使用elasticsearch-transport-starter

#配置示例 spring: elasticsearch:

cluster-name: jkzl #默认即为elasticsearch  集群名
cluster-nodes: 172.19.103.45:9300,172.19.103.68:9300 #配置es节点信息,逗号分隔,如果没有指定,则启动ClientNode
client-transport-sniff: false #是否开启嗅探
jest:
  uris: http://172.19.103.45:9200,http://172.19.103.68:9200 #jest的uri
  connection-timeout: 60000 #Connection timeout in milliseconds.
  multi-threaded: true #Enable connection requests from multiple execution threads.