springboot 2.3.0以后版本使用JestClient 操作ElasticSearch
@springboot 2.3.0以后版本使用JestClient操作es
由于springboot 2.3.0以后版本不支持自动注入JestClient
解决方案:手动创建配置类
pom.xml
配置类
@Configuration
public class MyJestClient {
@Bean
public JestClient getJestCline(){
JestClientFactory factory = new JestClientFactory();
原创
2020-11-25 22:24:50 ·
388 阅读 ·
0 评论