MySQL查询Timestamp数据时报错 Value '0000-00-00 00:00:00' can not be represented as java,该如何处理

MySQL查询Timestamp数据时报错 Value '0000-00-00 00:00:00' can not be represented as java
MySQL查询Timestamp数据时报错java.sql.SQLException: Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp,Timestamp字段没有值时怎MySQL查询Timestamp数据时报错 Value '0000-00-00 00:00:00' can not be represented as java,该如何处理么配置,使用C3p0配置,我配置了还是不行呀
,新人,求解决
------解决思路----------------------
mysql的datetime类型支持的范围为'1000-01-01'到'9999-12-31',当你输入不合法的日期或者0自动转为0000-00-00 00:00:00,而这个日期 明显不在我上面提到的范围,所以报错了