bboss-elasticsearch icon indicating copy to clipboard operation
bboss-elasticsearch copied to clipboard

ElasticSearchHelper.getRestClientUtil报错

Open GimoXie opened this issue 5 years ago • 1 comments

ElasticSearchHelper.getRestClientUtil("es/xxx.xml") 容器[conf/elasticsearch.xml]没有定义名称为[es/xxx.xml]的bean对象 求教是什么问题呢

GimoXie avatar Feb 02 '21 13:02 GimoXie

@GimoXie 用错了方法,应该用 ClientInterface clientUtil = ElasticSearchHelper.getConfigRestClientUtil("esmapper/sql.xml");//define an instanceof ConfigRestClientUtil,It's single instance, multithreaded secure. 参考文档:https://esdoc.bbossgroups.com/#/RestClientUtil-ConfigRestClientUtil

yin-bp avatar Feb 07 '21 08:02 yin-bp