@Configuration @ConditionalOnClass(value={org.elasticsearch.client.Client.class,org.springframework.data.elasticsearch.core.ElasticsearchTemplate.class}) public class ElasticsearchDataAutoConfiguration extends Object
Auto-configuration
for Spring Data's Elasticsearch
support.
Registers a ElasticsearchTemplate
if no other bean of the same type is
configured.
EnableElasticsearchRepositories
Constructor and Description |
---|
ElasticsearchDataAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.springframework.data.elasticsearch.core.ElasticsearchTemplate |
elasticsearchTemplate(org.elasticsearch.client.Client client) |
@Bean @ConditionalOnMissingBean public org.springframework.data.elasticsearch.core.ElasticsearchTemplate elasticsearchTemplate(org.elasticsearch.client.Client client)
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.