Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
148997fd
Commit
148997fd
authored
May 15, 2018
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgrade to Elasticsearch 6.2.4
Closes gh-13178
parent
795ff45a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
RestClientAutoConfiguration.java
...igure/elasticsearch/rest/RestClientAutoConfiguration.java
+7
-5
pom.xml
spring-boot-project/spring-boot-dependencies/pom.xml
+1
-1
No files found.
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/elasticsearch/rest/RestClientAutoConfiguration.java
View file @
148997fd
...
...
@@ -62,12 +62,13 @@ public class RestClientAutoConfiguration {
@Bean
(
destroyMethod
=
"close"
)
@ConditionalOnMissingBean
public
RestClient
restClient
()
{
RestClientBuilder
builder
=
configureBuilder
();
public
RestClient
restClient
(
RestClientBuilder
builder
)
{
return
builder
.
build
();
}
protected
RestClientBuilder
configureBuilder
()
{
@Bean
@ConditionalOnMissingBean
public
RestClientBuilder
restClientBuilder
()
{
HttpHost
[]
hosts
=
this
.
properties
.
getUris
().
stream
().
map
(
HttpHost:
:
create
)
.
toArray
(
HttpHost
[]::
new
);
RestClientBuilder
builder
=
RestClient
.
builder
(
hosts
);
...
...
@@ -90,8 +91,9 @@ public class RestClientAutoConfiguration {
@Bean
@ConditionalOnMissingBean
public
RestHighLevelClient
restHighLevelClient
(
RestClient
restClient
)
{
return
new
RestHighLevelClient
(
restClient
);
public
RestHighLevelClient
restHighLevelClient
(
RestClientBuilder
restClientBuilder
)
{
return
new
RestHighLevelClient
(
restClientBuilder
);
}
}
...
...
spring-boot-project/spring-boot-dependencies/pom.xml
View file @
148997fd
...
...
@@ -59,7 +59,7 @@
<embedded-mongo.version>
2.0.3
</embedded-mongo.version>
<flyway.version>
5.0.7
</flyway.version>
<freemarker.version>
2.3.28
</freemarker.version>
<elasticsearch.version>
5.6.9
</elasticsearch.version>
<elasticsearch.version>
6.2.4
</elasticsearch.version>
<glassfish-el.version>
3.0.0
</glassfish-el.version>
<groovy.version>
2.4.15
</groovy.version>
<gson.version>
2.8.4
</gson.version>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment