首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

ibatis异常提示

2012-08-22 
ibatis错误提示The error happened while setting a property on the result object.当使用ibatis时,报这

ibatis错误提示
The error happened while setting a property on the result object.
当使用ibatis时,报这个错误的时候,是因为表中某列值为空的话,ibatis不知道将这个空值怎么样转换为返回值中对应的默认值,比如列值是空,他返回null还是0还是""。绝大多数情况应该是对应属性为int类型,可以将int改为Integer,或者对数据库表进行控制。

热点排行