类 DreamProperties
java.lang.Object
cn.dreamfame.core.launch.props.DreamProperties
- 所有已实现的接口:
org.springframework.beans.factory.Aware,org.springframework.context.EnvironmentAware,org.springframework.core.env.EnvironmentCapable
@ConfigurationProperties("dream")
public class DreamProperties
extends Object
implements org.springframework.context.EnvironmentAware, org.springframework.core.env.EnvironmentCapable
- 作者:
- dreamfame
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleancontainsKey(String key) 判断是否存在key获取配置获取配置getBoolean(String key) 获取配置getBoolean(String key, Boolean defaultValue) 获取配置获取配置获取配置org.springframework.core.env.Environment获取配置获取配置获取配置获取配置voidsetEnvironment(org.springframework.core.env.Environment environment)
-
字段详细资料
-
environment
@Nullable private org.springframework.core.env.Environment environment -
env
开发环境 -
name
服务名 -
isLocal
判断是否为 本地开发环境 -
prop
装载自定义配置dream.prop.xxx
-
-
构造器详细资料
-
DreamProperties
public DreamProperties()
-
-
方法详细资料
-
get
获取配置- 参数:
key- key- 返回:
- value
-
get
获取配置- 参数:
key- keydefaultValue- 默认值- 返回:
- value
-
getInt
获取配置- 参数:
key- key- 返回:
- int value
-
getInt
获取配置- 参数:
key- keydefaultValue- 默认值- 返回:
- int value
-
getLong
获取配置- 参数:
key- key- 返回:
- long value
-
getLong
获取配置- 参数:
key- keydefaultValue- 默认值- 返回:
- long value
-
getBoolean
获取配置- 参数:
key- key- 返回:
- Boolean value
-
getBoolean
获取配置- 参数:
key- keydefaultValue- 默认值- 返回:
- Boolean value
-
getDouble
获取配置- 参数:
key- key- 返回:
- double value
-
getDouble
获取配置- 参数:
key- keydefaultValue- 默认值- 返回:
- double value
-
containsKey
判断是否存在key- 参数:
key- prop key- 返回:
- boolean
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment) - 指定者:
setEnvironment在接口中org.springframework.context.EnvironmentAware
-
getEnvironment
public org.springframework.core.env.Environment getEnvironment()- 指定者:
getEnvironment在接口中org.springframework.core.env.EnvironmentCapable
-