myeclipse报错Cannot convert to TIMESTAMP.

2026-02-13 02:05:43

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、这样这个问题就解决了

猜你喜欢