Commit e5611916 authored by Stephane Nicoll's avatar Stephane Nicoll

Close JestClient on shutdown

Closes gh-7051
parent 8ed20068
...@@ -56,7 +56,7 @@ public class JestAutoConfiguration { ...@@ -56,7 +56,7 @@ public class JestAutoConfiguration {
this.gsonProvider = gsonProvider; this.gsonProvider = gsonProvider;
} }
@Bean @Bean(destroyMethod = "shutdownClient")
@ConditionalOnMissingBean @ConditionalOnMissingBean
public JestClient jestClient() { public JestClient jestClient() {
JestClientFactory factory = new JestClientFactory(); JestClientFactory factory = new JestClientFactory();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment