错误:java.sql.SQLException: Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp
大意就是,value不能表示为Timestamp。
解决方法:修改配置,在jdbc的url后添加zeroDateTimeBehavior=convertToNull
即可。
ds.url=jdbc:mysql://localhost/epmp?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull