@FunctionalInterface public interface PropertySource
| Modifier and Type | Method and Description |
|---|---|
default boolean |
containPrefix(String prefix)
是否包含该前缀属性
|
default String |
getPlaceholderProperty(String placeholder)
获取占位符属性
|
default String |
getProperty(String key)
获取属性
|
default String |
getProperty(String key,
String defaultValue)
获取属性,可设置默认值
|
Properties |
props()
获取属性集合
|
Properties props()
default String getProperty(String key, String defaultValue)
key - 属性键值defaultValue - 默认值default String getPlaceholderProperty(String placeholder)
placeholder - 占位 eg. ${a}default boolean containPrefix(String prefix)
prefix - 前缀Copyright © 2020. All rights reserved.