我用了new Timestamp(System.currentTimeMillis())和new Timestamp(new Date().getTime())两个获取系统当前时间的方法都报写入00000错误。
使用Date date = new Date();
String nowTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(date);
info.setCreateTime(Timestamp.valueOf(nowTime));恢复正常