1,在xml中定义一个parameterMap
<parameterMap id="stringToClob" class="com.a.b.c">
<parameter property="inputParamMap" jdbcType="VARCHAR" javaType="java.lang.String" typeHandler="com.ibatis.sqlmap.engine.type.ClobTypeHandlerCallback" />
</parameterMap>
2,在xml中的插入语句中添加parameterMap
<insert id="insertSelect" parameterMap="stringToClob">
insert into tableA(columna) values(?)
</insert>