myeclipse报错Cannot convert to TIMESTAMP.

2025-11-04 08:11:17

1、报错原因  在url未添加参数  

myeclipse报错Cannot convert to TIMESTAMP.

2、解决方法:更改连接数据库方式

在连接:jdbc:mysql://127.0.0.1:3306/test 后面加上一个参数zeroDateTimeBehavior=convertToNull

即更改为:

jdbc:mysql://127.0.0.1:3306/test?zeroDateTimeBehavior=convertToNull

myeclipse报错Cannot convert to TIMESTAMP.

3、这样这个问题就解决了

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢