我的配置文件配置如下: <resultMap id="get-test-result" class="com.test.data.Test">
<result property="id" column="id"/>
<result property="name" column="name" javaType="java.lang.String" jdbcType="VARCHAR" nullValue=""/>
</resultMap>在程序的运行过程中还是出现如下错误:
com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in com/test/data/test.xml.
--- The error occurred while applying a result map.
--- Check the Test.get-test-result.
--- Check the result mapping for the 'name' property.
--- Cause: java.lang.NullPointerException
在配置文件中我已经配置了nullValue属性,为什么nullValue没有起到作用?另外我用的是SQL Server2000数据库。麻烦各位解答一下!谢谢!
<result property="id" column="id"/>
<result property="name" column="name" javaType="java.lang.String" jdbcType="VARCHAR" nullValue=""/>
</resultMap>在程序的运行过程中还是出现如下错误:
com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in com/test/data/test.xml.
--- The error occurred while applying a result map.
--- Check the Test.get-test-result.
--- Check the result mapping for the 'name' property.
--- Cause: java.lang.NullPointerException
在配置文件中我已经配置了nullValue属性,为什么nullValue没有起到作用?另外我用的是SQL Server2000数据库。麻烦各位解答一下!谢谢!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货