类 Conf


public class Conf extends BasicObject
配置管理
date: 2018年12月7日
版本:
0.2
作者:
jingma
  • 字段详细资料

  • 构造器详细资料

    • Conf

      public Conf()
  • 方法详细资料

    • getVal

      public static String getVal(String key, String defVal)
      获取配置信息
      参数:
      key - 配置键
      defVal - 默认值
      返回:
    • getVal

      public static String getVal(String key)
      获取配置信息
      参数:
      key - 配置键
      返回:
    • getValByDict

      public static String getValByDict(String key)
      从字典中获取配置
      参数:
      key - 键
      返回:
    • getValByConfig

      public static String getValByConfig(String key)
    • getJSONObject

      public static com.alibaba.fastjson.JSONObject getJSONObject(String key)
      获取json对象配置
      参数:
      key - 键
      返回:
      转为json对象的值
    • getConfig

      public static ConfAbstract<?> getConfig()
      返回:
      config
    • setConfig

      public static void setConfig(ConfAbstract<?> config)
      参数:
      config - the config to set
    • getPropertiesByDict

      public static Properties getPropertiesByDict()
      返回:
      获取全部配置信息-从字典中获取的。