Data truncation: Incorrect datetime value: '' for column 'create_time' at row 1 问题

        //取当前时间
        Date nowdate=new Date();
        //转换时间格式
        SimpleDateFormat simpleDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        order.setCreateTime(Timestamp.valueOf(simpleDate.format(nowdate)));
原文地址:https://www.cnblogs.com/qianzf/p/14844462.html