接口 PlaceholderResolver

所有已知实现类:
AbstractPropertyResolver, MapPropertyResolver, PlaceholderParser.PartResolutionContext, PropertiesPropertyResolver, PropertySourcesPropertyResolver, SystemPropertyUtils.SystemPropertyPlaceholderResolver, TypedPropertyResolver
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface PlaceholderResolver
Strategy interface used to resolve replacement values for placeholders contained in Strings.
作者:
TODAY 2021/10/3 13:24
  • 方法概要

    修饰符和类型
    方法
    说明
    resolvePlaceholder(String placeholderName)
    Resolve the supplied placeholder name to the replacement value.
  • 方法详细资料

    • resolvePlaceholder

      @Nullable String resolvePlaceholder(String placeholderName)
      Resolve the supplied placeholder name to the replacement value.
      参数:
      placeholderName - the name of the placeholder to resolve
      返回:
      the replacement value, or null if no replacement is to be made