Skip to content

gaoxianglong/spring-zk-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-zk-test

spring利用zookeeper作为配置中心Demo。

原理

首先动态加载相关bean,如果配置中心发生改变,对应的watcher监听到事件后,客户端则对相关bean进行重新注册,并且从配置中心获取到了最新数据,然后客户端直接调用getBean()方法获取相关bean实例,确保不再是之前引用。

About

spring利用zookeeper作为配置中心Demo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages