把String转换为Timestamp Timestamp time=new Timestamp(new SimpleDateFormat("yyyy-MM-dd").parse("2020-04-25").getTime());