Caused by: java.sql.SQLException: Value '0000-00-00 00:00:00' can not be represented as java.sql.Tim
1.错误
2.解决
zeroDateTimeBehavior=convertToNull
Cannot convert value '0000-00-00 00:00:00' from column 1 to TIMESTAMP
在Mysql数据库中使用DATETIME类型来存储时间,使用JDBC中读取这个字段的时候
转载
2013-10-29 16:09:08 ·
1540 阅读 ·
0 评论