[英]Spring Data Elastic Search with Shield
Does Spring Data Elastic Search template support username and password? Spring Data Elastic Search模板是否支持用户名和密码? What are the options to if we need to use spring data to connect to elastic search that is protected with Shield.
如果需要使用弹簧数据连接到受Shield保护的弹性搜索,有哪些选择?
Current configuration 当前配置
<elasticsearch:transport-client id="client" cluster-nodes="${elasticsearch.cluster.host}:${elasticsearch.cluster.port}"
cluster-name="${elasticsearch.cluster.name}" />
<bean name="elasticsearchTemplate" class="org.springframework.data.elasticsearch.core.ElasticsearchTemplate">
<constructor-arg name="client" ref="client"/>
</bean>
我认为目前尚不支持此功能,但是对此功能有一个公开拉取请求: https : //github.com/spring-projects/spring-data-elasticsearch/pull/152
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.