mybatis更新成功返回值 mybatis增删改返回的int是什么意思?

mybatis增删改返回的int是什么意思?你可以把defaultExecutorType值改了。有三个值:SIMPLE 普通返回。REUSE 重复。BATCH 批量更新。MyBatis发现更

mybatis增删改返回的int是什么意思?

你可以把defaultExecutorType值改了。有三个值:SIMPLE 普通返回。REUSE 重复。BATCH 批量更新。MyBatis发现更新和插入返回值一直为"-2147482646"的错误是由defaultExecutorType设置引起的,如果设置为batch,更新返回值就会丢失。mybatis官方的讨论列表,这句很关键:“If the batch executor is in use, the update counts are being lost. ” defaultExecutorType是默认执行类型。