scala连接elasticsearch并完成基本认证
def getRestClient(url: String): RestClient = { val restClientBuilder = RestClient.builder(HttpHost.create(url)) val provider = new BasicCredentialsProvider() val user = authInfo(0) val password = authInfo(1) provider..
原创
2020-06-15 20:28:28 ·
1318 阅读 ·
0 评论