Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design2
/
2017110273
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sdy
2021-04-13 18:46:07 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1383daa36f785ce7b5442da423c03b82cf1fe350
1383daa3
1 parent
b5804237
Delete RestClientConfig.java
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
src/main/java/com/esboot/bertsearch/config/RestClientConfig.java
src/main/java/com/esboot/bertsearch/config/RestClientConfig.java
deleted
100644 → 0
View file @
b580423
package
com
.
esboot
.
bertsearch
.
config
;
import
org.elasticsearch.client.RestHighLevelClient
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.data.elasticsearch.client.ClientConfiguration
;
import
org.springframework.data.elasticsearch.client.RestClients
;
import
org.springframework.data.elasticsearch.config.AbstractElasticsearchConfiguration
;
@Configuration
public
class
RestClientConfig
extends
AbstractElasticsearchConfiguration
{
@Override
@Bean
public
RestHighLevelClient
elasticsearchClient
()
{
ClientConfiguration
clientConfiguration
=
ClientConfiguration
.
builder
().
connectedTo
(
"localhost:9200"
).
build
();
return
RestClients
.
create
(
clientConfiguration
).
rest
();
}
}
Please
register
or
login
to post a comment