类 BoundConfigurationProperties
java.lang.Object
org.springframework.boot.context.properties.BoundConfigurationProperties
Bean to record and provide bound
@ConfigurationProperties
.- 从以下版本开始:
- 2.3.0
- 作者:
- Madhura Bhave
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明get
(ConfigurationPropertyName name) Get the configuration property bound to the given name.static BoundConfigurationProperties
get
(ApplicationContext context) Return theBoundConfigurationProperties
from the givenApplicationContext
if it is available.getAll()
Get all bound properties.
-
构造器详细资料
-
BoundConfigurationProperties
public BoundConfigurationProperties()
-
-
方法详细资料
-
get
Get the configuration property bound to the given name.- 参数:
name
- the property name- 返回:
- the bound property or
null
-
getAll
Get all bound properties.- 返回:
- a map of all bound properties
-
get
Return theBoundConfigurationProperties
from the givenApplicationContext
if it is available.- 参数:
context
- the context to search- 返回:
- a
BoundConfigurationProperties
ornull
-