标签: spring elasticsearch spring-boot spring-data connection-pooling
我创建了一个spring boot应用程序,它使用spring boot starter data elasticsearch连接到elasticsearch。我想配置此应用程序以设置连接池。如何配置application.properties以支持它?
答案 0 :(得分:1)
From the docs:
spring.data.elasticsearch.properties。* =#用于配置客户端的其他属性。
虽然看起来默认TransportClient确实会建立池连接。
TransportClient