Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ElasticSearchHelper.getRestClientUtil报错 #41

Open
GimoXie opened this issue Feb 2, 2021 · 1 comment
Open

ElasticSearchHelper.getRestClientUtil报错 #41

GimoXie opened this issue Feb 2, 2021 · 1 comment

Comments

@GimoXie
Copy link

GimoXie commented Feb 2, 2021

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

@yin-bp
Copy link
Contributor

yin-bp commented Feb 7, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants