开发问题:日期格式问题 Failed to convert value of type 'java.lang.String' to required type 'java.util.Date';

后台接收Date数据,用String 类型接收,写入时转换格式 String-》Date,先进行格式修改,再利用parse转换为Date java.text.SimpleDateFormat ft = new SimpleDateFormat( "yyyy-MM-dd HH:mm:ss"); Dat
posted @ 2021-08-19 11:20  锦瑟流年3344  阅读(449)  评论(0编辑  收藏  举报