接口 StringValueResolver
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
Simple strategy interface for resolving a String value.
- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller, TODAY 2021/9/30 22:44
- 另请参阅:
-
方法概要
修饰符和类型方法说明resolveStringValue(String strVal) Resolve the given String value, for example parsing placeholders.
-
方法详细资料
-
resolveStringValue
Resolve the given String value, for example parsing placeholders.- 参数:
strVal- the original String value (nevernull)- 返回:
- the resolved String value (may be
nullwhen resolved to a null value), possibly the original String value itself (in case of no placeholders to resolve or when ignoring unresolvable placeholders) - 抛出:
IllegalArgumentException- in case of an unresolvable String value
-