Close JestClient on shutdown
Closes gh-7051
This commit is contained in:
@@ -56,7 +56,7 @@ public class JestAutoConfiguration {
|
||||
this.gsonProvider = gsonProvider;
|
||||
}
|
||||
|
||||
@Bean
|
||||
@Bean(destroyMethod = "shutdownClient")
|
||||
@ConditionalOnMissingBean
|
||||
public JestClient jestClient() {
|
||||
JestClientFactory factory = new JestClientFactory();
|
||||
|
||||
Reference in New Issue
Block a user