Spring注入对象数组

今天在研究spring属性编辑器,注册spring自带编辑器时,突然发现要注册对象数组,一脸懵逼
spring源码如下:
Spring注入对象数组_第1张图片

注册方式

class="org.springframework.beans.factory.config.CustomEditorConfigurer">
        <property name="propertyEditorRegistrars">
            id="datePropertyEditorRegistrar" class="com.hl.test.propertyEditor.DatePropertyEditorRegistrar"/> 
        property>
    

ok啦

你可能感兴趣的:(基础学习)