JDBC链接mysql,时间时0000-00-00 00:00:00时报错

应为mysql默认最小timestamp是0001-01-01 00:00:00,所以查询出来会报错

需要加在链接的url中加入

&zeroDateTimeBehavior=convertToNull
原文地址:https://www.cnblogs.com/zipon/p/9676015.html