代码拉取完成,页面将自动刷新
同步操作将从 蓝色调调/Spring-Analysis 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
类全路径: org.springframework.core.env.AbstractPropertyResolver
类图
内部属性
/**
* 配置过的 转换服务
*/
@Nullable
private volatile ConfigurableConversionService conversionService;
/**
* 占位符解析工具
*/
@Nullable
private PropertyPlaceholderHelper nonStrictHelper;
/**
* 占位符解析工具
*/
@Nullable
private PropertyPlaceholderHelper strictHelper;
/**
* 遇到无法解析的占位符是否需要抛出异常
*/
private boolean ignoreUnresolvableNestedPlaceholders = false;
/**
* 前缀
*/
private String placeholderPrefix = SystemPropertyUtils.PLACEHOLDER_PREFIX;
/**
* 后缀
*/
private String placeholderSuffix = SystemPropertyUtils.PLACEHOLDER_SUFFIX;
/**
* 值分割符号
*/
@Nullable
private String valueSeparator = SystemPropertyUtils.VALUE_SEPARATOR;
AbstractPropertyResolver
的实现方法围绕上文提到的内部属性进行操作. 例如设置前缀
@Override
public void setPlaceholderPrefix(String placeholderPrefix) {
Assert.notNull(placeholderPrefix, "'placeholderPrefix' must not be null");
this.placeholderPrefix = placeholderPrefix;
}
整体上这个类更多的是提供抽象方法和通用方法, 跟多细节交给子类去完成.例如下面这段代码
@Override
@Nullable
public String getProperty(String key) {
return getProperty(key, String.class);
}
org.springframework.core.env.PropertySourcesPropertyResolver#getProperty(java.lang.String)
org.springframework.core.env.PropertySourcesPropertyResolver#getProperty(java.lang.String, java.lang.Class<T>, boolean)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。