Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- jquery
- java tip
- ibatis
- rember me
- gwt
- Spring
- Drools Fusion
- Hudson
- jenkins
- zabbix
- CEP
- spring transaction
- spring jpa
- jstl
- querydsl
- JBoss Seam
- gwt-ext
- maven
- drools
- COC
- spring security
- SVN
- jquery serialize
- custom filter
- JPA
- GEventEvaluator
- bootstrap jquery datepicker
- guvnor
- MySQL
- @SqlResultSetMapping
Archives
- Today
- Total
봉 블로그
Spring custom PropertyEditors 본문
http://static.springsource.org/spring/docs/2.5.x/reference/validation.html#beans-beans-conversion-customeditor-registration
<bean id="customEditorConfigurer" class="org.springframework.beans.factory.config.CustomEditorConfigurer">
<property name="customEditors">
<map>
<entry key="java.util.Date">
<bean class="org.springframework.beans.propertyeditors.CustomDateEditor">
<constructor-arg index="0">
<bean class="java.text.SimpleDateFormat">
<constructor-arg>
<value>M/d/yy</value>
</constructor-arg>
</bean>
</constructor-arg>
<constructor-arg index="1">
<value>true</value>
</constructor-arg>
</bean>
</entry>
</map>
</property>
</bean>
<bean id="customEditorConfigurer" class="org.springframework.beans.factory.config.CustomEditorConfigurer">
<property name="customEditors">
<map>
<entry key="java.util.Date">
<bean class="org.springframework.beans.propertyeditors.CustomDateEditor">
<constructor-arg index="0">
<bean class="java.text.SimpleDateFormat">
<constructor-arg>
<value>M/d/yy</value>
</constructor-arg>
</bean>
</constructor-arg>
<constructor-arg index="1">
<value>true</value>
</constructor-arg>
</bean>
</entry>
</map>
</property>
</bean>