Skip to content

Commit e561191

Browse files
committed
Close JestClient on shutdown
Closes gh-7051
1 parent 8ed2006 commit e561191

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/elasticsearch/jest/JestAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public JestAutoConfiguration(JestProperties properties,
5656
this.gsonProvider = gsonProvider;
5757
}
5858

59-
@Bean
59+
@Bean(destroyMethod = "shutdownClient")
6060
@ConditionalOnMissingBean
6161
public JestClient jestClient() {
6262
JestClientFactory factory = new JestClientFactory();

0 commit comments

Comments
 (0)