Close JestClient on shutdown

Closes gh-7051
pull/7074/head
Stephane Nicoll 8 years ago
parent 8ed20068ca
commit e56119165e

@ -56,7 +56,7 @@ public class JestAutoConfiguration {
this.gsonProvider = gsonProvider;
}
@Bean
@Bean(destroyMethod = "shutdownClient")
@ConditionalOnMissingBean
public JestClient jestClient() {
JestClientFactory factory = new JestClientFactory();

Loading…
Cancel
Save