1. 通过ThunderProperties类获取默认属性配置文件

    1. 如果配置文件中没有配置默认属性,则使用java代码中的默认配置
    2. 例如: 选择序列化实现的时候
    3. 类 SerializerFactory
    4.     private static SerializerType binarySerializerType = SerializerType.FST_BINARY;
          private static SerializerType jsonSerializerType = SerializerType.JACKSON_JSON;
      
  2. 通过ThunderPropertiesManager类统一管理属性
    1. 属性文件
    2. 扩展属性文件
    3. 远程属性文件:为集成类似ctrip apollo配置中心预留接口 (参考ThunderPropertiesExecutor)

results matching ""

    No results matching ""