idea
控制台报错:java.sql.SQLException: MONTH
Error attempting to get column 'xxx' from result set. Cause: java.sql.SQLException: MONTH
; MONTH; nested exception is java.sql.SQLException: MONTH] with root cause
sql
查询结果无法转换成Java
的Date
类型,这里是月份无法转换,因为数据库的时间是:
2020-00-29 00:00:00
月份无法转换,所以
Java
就报错了。时间改成正确格式即可。
java.sql.SQLException: MONTH
报错。先定位到对应字段,如果无法确认问题原因,先去掉字段,去掉后没有问题,应该就是时间字段的问题。MONTH
说明是时间无法转换。扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有