Package com.arms.config
Class ElasticsearchClientConfig
- java.lang.Object
-
- org.springframework.data.elasticsearch.config.ElasticsearchConfigurationSupport
-
- org.springframework.data.elasticsearch.config.AbstractElasticsearchConfiguration
-
- com.arms.config.ElasticsearchClientConfig
-
@Configuration @EnableElasticsearchRepositories(basePackages="com.arms", repositoryBaseClass=공통저장소_구현체.class) @ComponentScan(basePackages="com.arms") public class ElasticsearchClientConfig extends org.springframework.data.elasticsearch.config.AbstractElasticsearchConfiguration
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
elasticsearchUrl
-
Constructor Summary
Constructors Constructor Description ElasticsearchClientConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeClient()
org.apache.http.conn.ConnectionKeepAliveStrategy
connectionKeepAliveStrategy()
org.elasticsearch.client.RestHighLevelClient
elasticsearchClient()
-
Methods inherited from class org.springframework.data.elasticsearch.config.AbstractElasticsearchConfiguration
elasticsearchOperations
-
-
-
-
Method Detail
-
elasticsearchClient
@Bean public org.elasticsearch.client.RestHighLevelClient elasticsearchClient()
- Specified by:
elasticsearchClient
in classorg.springframework.data.elasticsearch.config.AbstractElasticsearchConfiguration
-
closeClient
@PreDestroy public void closeClient()
-
connectionKeepAliveStrategy
@Bean(name="keepAliveStrategy") public org.apache.http.conn.ConnectionKeepAliveStrategy connectionKeepAliveStrategy()
-
-