com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in com/brilliance/Emp.xml.
--- The error occurred while applying a result map.
--- Check the getAllEmp-AutoResultMap.
--- The error happened while setting a property on the result object.
--- The error occurred in com/brilliance/Emp.xml.
--- The error occurred while applying a result map.
--- Check the getAllEmp-AutoResultMap.
--- The error happened while setting a property on the result object.
--- The error occurred while applying a result map.
--- Check the getAllEmp-AutoResultMap.
--- The error happened while setting a property on the result object.
看报错信息啊
iBATIS好像有个问题是如果某列值为空,它不知道如何将这个空值转换为返回值中对应的默认值,如name列值为null,他返回null还是0还是“”呢,他也不知道,需要设置一下。
你可以直接连数据库查询下是否某列有空值,是否这个问题引起的。