CofigToolkit是大型集群和分布式应用配置工具包。Cofigtoolkit用于简化从本地配置文件到zookeeper的迁移。
在大型集群和分布式应用中,配置不宜分散到集群结点中,应该集中管理.
依赖JAVA7+
TOMCAT7+forCofigWeb
模块CofigToolkit-封装应用属性配置的获取及更新
CofigWeb-提供web界面维护属性配置,提供配置导入导出功能
特性集中管理集群配置
实现配置热更新
多配置源支持,内置支持zookeeper、本地文件、http协议
Sprig集成
本地配置覆盖
配置管理web界面
版本控制,支持灰度发布
支持为配置项添加注释
QuickStartloadpropertiesfromzookeeperZookeeperCofigProfile cofigProfile = ew ZookeeperCofigProfile("zoo.host1:8181", "/projectx/modulex", "1.0.0"); GeeralCofigGroup propertyGroup1 = ew ZookeeperCofigGroup(cofigProfile, "property-group1");loadpropertiesfromclasspathfileFileCofigProfile cofigProfile = ew FileCofigProfile("UTF8", "properties"); CofigGroup cofigGroup = ew FileCofigGroup(cofigProfile, "classpath:property-group1.properties");loadxmlpropertiesfromclasspathfileFileCofigProfile cofigProfile = ew FileCofigProfile("UTF8", "xml"); CofigGroup cofigGroup = ew FileCofigGroup(cofigProfile, "classpath:property-group1.xml");loadpropertiesfromfileFileCofigProfile cofigProfile = ew FileCofigProfile("UTF8", "properties"); CofigGroup cofigGroup = ew FileCofigGroup(cofigProfile, "file:/Users/yuxuawag/Work/git/cofig-toolkit/cofig-toolkit-demo/src/mai/resources/property-group1.properties");loadpropertiesfromhttpFileCofigProfile cofigProfile = ew FileCofigProfile("UTF8", "properties"); CofigGroup cofigGroup = ew FileCofigGroup(cofigProfile, "https://crlmchia.github.io/cofig-group.properties");









评论