MyBatis发现更新和插入返回值一直为"-2147482646"的错误是由defaultExecutorType设置引起的,如果设置为BATCH,更新返回值就会丢失。mybatis官方的讨论列表,这句很关键:“If the BATCH
executor is in use, the update counts are being lost. ”
defaultExecutorType是默认执行类型
可以有返回值
比如在java中定义一个 删除的接口
public int delete(@param("id") Integer id);
在xml 中
<delete id="delete" >
delete from tableName where id=#{id,jdbcType=NUMERIC}
<delete>
MyBatis发现更新和插入返回值一直为"-2147482646"的错误是由defaultExecutorType设置引起的,如果设置为BATCH,更新返回值就会丢失。mybatis官方的讨论列表,这句很关键:“If the BATCH
executor is in use, the update counts are being lost. ”
defaultExecutorType是默认执行类型
MyBatis发现更新和插入返回值一直为"-2147482646"的错误是由defaultExecutorType设置引起的,如果设置为BATCH,更新返回值就会丢失。mybatis官方的讨论列表,这句很关键:“If the BATCH
executor is in use, the update counts are being lost. ”
defaultExecutorType是默认执行类型
MyBatis发现更新和插入返回值一直为"-2147482646"的错误是由defaultExecutorType设置引起的,如果设置为BATCH,更新返回值就会丢失。mybatis官方的讨论列表,这句很关键:“If the BATCH
executor is in use, the update counts are being lost. ”
defaultExecutorType是默认执行类型
用户登录
还没有账号?立即注册
用户注册
投稿取消
文章分类: |
|
还能输入300字
上传中....