Spring注入对象数组
来源:互联网 发布:java web mail 编辑:程序博客网 时间:2024/05/16 13:51
今天在研究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啦
阅读全文