MySQL数据库在面对0000-00-00 00:00:00日期的处理时,如果没有设置对应的对策,就会产生异常。在配置文件jdbc-url参数中加上&zeroDateTimeBehavior=convertToNull,作用是将0000-00-00 00:00:00转化为null。
&zeroDateTimeBehavior=convertToNul
MySQL数据库在面对0000-00-00 00:00:00日期的处理时,如果没有设置对应的对策,就会产生异常。在配置文件jdbc-url参数中加上&zeroDateTimeBehavior=convertToNull,作用是将0000-00-00 00:00:00转化为null。
&zeroDateTimeBehavior=convertToNul