Young87

SmartCat's Blog

So happy to code my life!

游戏开发交流QQ群号60398951

当前位置:首页 >跨站数据

java.time.format.DateTimeParseException: Text '2020-04-03 14:57:41' could not be parsed at index 10

很明显,时间转换错误

代码报错行:

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);

 

 

除特别声明,本站所有文章均为原创,如需转载请以超级链接形式注明出处:SmartCat's Blog

上一篇: 数据库指向默认模式(Schema)

下一篇: 百度大脑翻拍识别,有效提升快消业渠道促销“费效比”

精华推荐