我创建了一个使用 spring boot 启动器数据 elasticsearch 连接到 elasticsearch 的 spring boot 应用程序。我想配置这个应用程序来设置连接池。如何配置 application.properties 以支持它?
最佳答案
旧答案 .从 Boot 2.2 开始,响应式客户端没有这些选项。
From the docs :
spring.data.elasticsearch.properties.*= # Additional properties used to configure the client.
虽然看起来默认的
TransportClient
无论如何池连接。
关于spring - 如何在 Spring Boot 中为 Elasticsearch 设置连接池,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41827118/