其他分享
首页 > 其他分享> > 在spring中增加属性编辑器

在spring中增加属性编辑器

作者:互联网

配置文件spring.xml

<!-- 注册属性编辑器 -->
<bean
class="org.springframework.beans.factory.config.CustomEditorConfigurer">
<property name="customEditors">
<map>
<entry key="com.yyp.entity.Address" value="com.yyp.editor.AddressEditor" />

</map>

</property>
</bean>

标签:xml,配置文件,spring,factory,springframework,编辑器,beans,属性
来源: https://www.cnblogs.com/miwaiwai/p/16410809.html