一般就是数据库表字段类型问题,大家参考下面的方法解决下
could not read column value from result set :某某字段(birthday)
出现了这样的错误,反复对照,映射文件没问题,字段没问题。
问题在哪呢?测试了下,如果birthday是String 类型的,没问题。如果是Date类型的。出错,其实原因很简单了,把记录中birthday字段的默认值0000 00-00-00改为正常即可
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn