@Test
public void testTime() throws ParseException {
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
//法一:
String time111 = "2023-08-14 18:13:10";
Date date = format.parse(time111);
System.out.println("法一:String转Date:" + date);
System.out.println("法一:String转Date:" + format.format(date));
}