java.lang.IllegalArgumentException: XML fragments parsed from previous mappers does not contain value for


         使用mybatis做一个简单的查询的时候,报了这个问题。代码如下:

       

<mapper namespace="cn.gaiay.business.zm.live.living.dao.LiveMapper">
<resultMap id="BaseResultMap" type="cn.gaiay.business.zm.live.living.model.Live">
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="title" jdbcType="VARCHAR" property="title" />
<result column="description" jdbcType="VARCHAR" property="description" />
 
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="cn.gaiay.business.zm.live.living.model.Live">
<result column="time_long" jdbcType="LONGVARCHAR" property="timeLong" />
</resultMap>
<sql id="Base_Column_List">
id, title, description 
</sql>
<sql id="Blob_Column_List">
time_long
</sql>

 

以下省略。。。

 

 上网搜了都说是 sql 位置的问题,或者名称的问题。最后发现是由于有两个sql id 的问题。。。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM