Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <bean class="org.springframework.beans.factory.config.CustomEditorConfigurer">
- <property name="customEditors">
- <map>
- <entry key="some.user.defined.Clazz"
- value="some.user.definded.ClazzConverter"/>
- </map>
- </property>
- </bean>
- @Bean
- public CustomEditorConfigurer customEditorConfigurer() {
- final CustomEditorConfigurer customEditorConfigurer = new CustomEditorConfigurer();
- customEditorConfigurer.setCustomEditors(ImmutableMap.of(Clazz.class, ClazzConverter.class));
- return customEditorConfigurer;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement