views:

36

answers:

0

DDStep Date Question: Currently trying to pass just the date from excel. But getting the below error while doing it. Failed to convert property value of type [java.lang.String] to required type [java.util.Date] for property ...no matching editors or conversion strategy found spring for date conversion

I even tried to add customEditorConfigurer in the ddsteps-context file. Still getting error. But in their pet store example looks like it works fine. Any help is appreciated.

<entry key="java.util.Date">
 <bean class="org.springframework.beans.propertyeditors.CustomDateEditor">
  <constructor-arg>
   <bean class="java.text.SimpleDateFormat">
    <constructor-arg value="yyyy-MM-dd" />
   </bean>
  </constructor-arg>
  <constructor-arg value="false" />
 </bean>
</entry>