Close JestClient on shutdown

Closes gh-7051
This commit is contained in:
Stephane Nicoll
2016-09-30 10:51:48 +02:00
parent 8ed20068ca
commit e56119165e

View File

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