zoukankan      html  css  js  c++  java
  • springbatch 读取csv文件时 文件中有字符串需要转换为Date类型的字段报错字符串不能转化为Date类型的解决方法

    今天用springbatch 读取csv 文件中有个字段值为“2017-05-18 15:24:09” 映射的对象中属性为Date型,项目运行过程中报错:Cannot convert value of type [java.lang.String] to required type [java.util.Date] for property 'chargingTime': no matching editors or conversion strategy found    终于找到解决方法:参考这里面的写法就没问题了  http://www.mkyong.com/spring-batch/how-to-convert-date-in-beanwrapperfieldsetmapper/

  • 相关阅读:
    九九乘法表
    杨辉三角
    显示计算机界面
    完善3.2
    杨辉三角形
    100以内的素数
    九九乘法表
    杨辉三角
    九九乘法表
    杨辉三角形
  • 原文地址:https://www.cnblogs.com/sailormoon/p/7169960.html
Copyright © 2011-2022 走看看