Cannot convert 2014-08-04 00:00:00.0 of type class java.lang.String to class java.util.Date
2018-01-26 12:14
1856 查看
这个错误是相应数据的类型不正确导致 我的bean层写的是 private String invoiceDate; jsp写的是<td><fmt:formatDate value="${o.invoiceDate}" pattern="yyyy-mm-dd"/></td>
yyyy-mm-dd"的日期格式跟上面的String不对应 String改成java.util.Date就可以
yyyy-mm-dd"的日期格式跟上面的String不对应 String改成java.util.Date就可以
相关文章推荐
- Cannot convert value of type [java.lang.String] to required type [java.util.Date] for property 'xxx'
- [置顶] 解决:Failed to convert value of type 'java.lang.String' to required type 'java.util.Date';
- Cannot convert 0:0 of type class java.lang.String to class java.lang.Long
- Cannot convert value of type [java.lang.String] to required type [java.util.Date] for property 'xxx': no matching editors or conversion strategy found
- 解决:Failed to convert value of type 'java.lang.String' to required type 'java.util.Date';
- Cannot convert value of type [java.lang.String] to required type [java.util.Date] for property 'xxx'
- Failed to convert property value of type 'java.lang.String' to required type 'java.util.Date' for pr
- Cannot convert 临时用户 of type class java.lang.String to class java.lang.Long
- Failed to convert property value of type [java.lang.String] to required type [java.util.Date] for pr
- javax.el.ELException: Cannot convert 2015-12-03 18:50 of type class java.lang.String to class java.u
- Failed to convert property value of type [java.lang.String] to required type [java.util.Date] for pr
- SpringMVC Failed to convert from type java.lang.String to type java.util.Date for value '2014-12-02'
- 关于springMVC中:Failed to convert property value of type 'java.lang.String' to required type 'java.util
- Failed to convert from type java.lang.String to type java.util.Date for value解决办法
- jsf配置问题 Error performing conversion of value ' of type class java.lang.String to type class
- Failed to convert from type java.lang.String to type java.util.Date for value………解决办法
- Failed to convert from type java.lang.String to type java.util.Date for value………解决办法
- Failed to convert from type java.lang.String to type java.util.Date for value………解决办法
- javax.el.ELException: Cannot convert 1 of type class java.lang.Integer to class java.lang.Boolean
- javax.el.ELException: Cannot convert 1 of type class java.lang.Integer to class java.lang.Boolean