很明显,时间转换错误 代码报错行: LocalDateTime.parse("2020-04-03 14:57:41"); 解决方案: DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); LocalDateTime parse = LocalDateTime.parse("2020-04-03 1
很明显,时间转换错误
代码报错行:
LocalDateTime.parse("2020-04-03 14:57:41");
解决方案:
DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
LocalDateTime parse = LocalDateTime.parse("2020-04-03 14:57:41",df);