Skip to content

Commit

Permalink
Add destroyMethod for zookeeperRegistryCenter bean (#2441)
Browse files Browse the repository at this point in the history
Co-authored-by: cheyx <[email protected]>
  • Loading branch information
ooooooook and cheyx authored Sep 29, 2024
1 parent a7e56f9 commit 6348fd1
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 6348fd1

Please sign in to comment.