ElasticSearchHelper.getRestClientUtil报错
Closed this issue · 1 comments
GimoXie commented
ElasticSearchHelper.getRestClientUtil("es/xxx.xml")
容器[conf/elasticsearch.xml]没有定义名称为[es/xxx.xml]的bean对象
求教是什么问题呢
yin-bp commented
@GimoXie
用错了方法,应该用
ClientInterface clientUtil = ElasticSearchHelper.getConfigRestClientUtil("esmapper/sql.xml");//define an instanceof ConfigRestClientUtil,It's single instance, multithreaded secure.
参考文档:https://esdoc.bbossgroups.com/#/RestClientUtil-ConfigRestClientUtil