| Package | Description |
|---|---|
| com.huaweicloud.pangu.dev.sdk.env | |
| com.huaweicloud.pangu.dev.sdk.utils |
| Modifier and Type | Method and Description |
|---|---|
static EnvName |
EnvName.fromText(String text)
通过字符串映射类
|
static EnvName |
EnvName.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EnvName[] |
EnvName.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static Optional<String> |
Env.get(EnvName envName)
获取环境变量值
|
| Modifier and Type | Method and Description |
|---|---|
static Boolean |
ConfigLoadUtil.getBooleanConf(Boolean value,
EnvName envName)
通过配置项获取Boolean配置值
|
static Integer |
ConfigLoadUtil.getIntConf(Integer value,
EnvName envName)
获取Integer类型配置项
优先级:主动设置 - 配置文件 - 环境变量
|
static String |
ConfigLoadUtil.getStringConf(String value,
EnvName envName)
获取String类型配置项
优先级:主动设置 - 配置文件 - 环境变量
|
Copyright © 2024. All rights reserved.