今天在研究spring属性编辑器,注册spring自带编辑器时,突然发现要注册对象数组,一脸懵逼
spring源码如下:
注册方式
<bean class="org.springframework.beans.factory.config.CustomEditorConfigurer">
<property name="propertyEditorRegistrars">
<bean id="datePropertyEditorRegistrar" class="com.hl.test.propertyEditor.DatePropertyEditorRegistrar"/>
</property>
</bean>
ok啦