Skip to content

Commit

Permalink
add destroyMethod for zookeeperRegistryCenter bean
Browse files Browse the repository at this point in the history
  • Loading branch information
cheyx committed Sep 29, 2024
1 parent a7e56f9 commit 11f1dc8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class ElasticJobRegistryCenterConfiguration {
* @param zookeeperProperties factory
* @return zookeeper registry center
*/
@Bean(initMethod = "init")
@Bean(initMethod = "init", destroyMethod = "close")
public ZookeeperRegistryCenter zookeeperRegistryCenter(final ZookeeperProperties zookeeperProperties) {
return new ZookeeperRegistryCenter(zookeeperProperties.toZookeeperConfiguration());
}
Expand Down

0 comments on commit 11f1dc8

Please sign in to comment.