Skip to content
oldratlee edited this page Feb 12, 2013 · 6 revisions

Welcome to the unicorn wiki!

Unicorn是一个统一配置库(UNIform CONfigration),用于给其它构架获取配置。

一个框架要求配置有足够的灵活性,以应对框架复杂的配置需求。

  • 支持和集成多种配置方式:
    • Pojo方式配置
    • Spring风格的配置
    • Annotation
    • properties file on classpath
    • JVM -D选项
    • 远程配置(ZooKeeper, etc)
  • 不同配置方式可以配置覆盖顺序,比如 JVM -D选项的配置可以覆盖Pojo的配置
  • Pojo方式的不对象之间可以有覆盖关系,或说缺省关系
    比如,Dubbo的Reference(某个远程服务的配置)配置缺省使用Consumer(远程服务有公共配置),即Reference覆盖Consumer配置。

为什么要有统一配置库(Unicorn)

设计说明

Clone this wiki locally