类 ConfigUtil

java.lang.Object
com.alibaba.csp.sentinel.util.ConfigUtil

public final class ConfigUtil extends Object

Util class for loading configuration from file or command arguments.

从以下版本开始:
1.7.0
作者:
lianglin
  • 字段详细资料

  • 方法详细资料

    • loadProperties

      public static Properties loadProperties(String fileName)

      Load the properties from provided file.

      Currently it supports reading from classpath file or local file.

      参数:
      fileName - valid file path
      返回:
      the retrieved properties from the file; null if the file not exist
    • addSeparator

      public static String addSeparator(String dir)