提交 75bcfb82 编写于 作者: C congshuo_cnki

refresh

上级 54a9eb77
......@@ -1659,6 +1659,8 @@ public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp
* @param beanDefinition the bean definition that the value comes from
* @return the resolved value
* @see #setBeanExpressionResolver
*
* 完成SpEL 解析
*/
@Nullable
protected Object evaluateBeanDefinitionString(@Nullable String value, @Nullable BeanDefinition beanDefinition) {
......
......@@ -126,9 +126,11 @@ public class ResourceEditorRegistrar implements PropertyEditorRegistrar {
*/
private void doRegisterEditor(PropertyEditorRegistry registry, Class<?> requiredType, PropertyEditor editor) {
if (registry instanceof PropertyEditorRegistrySupport) {
/** 重写解析器*/
((PropertyEditorRegistrySupport) registry).overrideDefaultEditor(requiredType, editor);
}
else {
/** 注册解析器*/
registry.registerCustomEditor(requiredType, editor);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册