java.lang.IllegalArgumentException: XML fragments parsed from previous mappers does not contain value for
2018-01-05 15:08
3323 查看
使用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 的问题。。。
<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 的问题。。。
相关文章推荐
- Cause: java.lang.IllegalArgumentException: XML fragments parsed from previous mappers does not cont
- 发现个Mybatis的bug: XML fragments parsed from previous mappers does not contain value for
- XML fragments parsed from previous mappers does not contain value for ……
- Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for U
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for com.sojs
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for queryAll
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for...
- mybatis:java.lang.IllegalArgumentException:Parameter Maps collection does notcontain value for ...
- mybatis:java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- MyBatis出现java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for **
- 解决mybatis,java.lang.IllegalArgumentException Mapped Statements collection does not contain value for
- MyBatis异常java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for com.dao
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for /package
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value forCommand.c
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for org.fkit
- Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for