答案我已找到,^-^ MyBatis发现更新和插入返回值一直为"-2147482646"的错误是由defaultExecutorType设置引起的,如果设置为BATCH,更新返回值就会丢失。mybatis官方的讨论列表,这句很关键:“If the BATCH executor is in use, the update counts are being lost. ” 来自:http://hi.baidu.com/obduvhfyfnbamuq/item/ad5e447afdafc40d5c17891f
发布评论
评论(1)
答案我已找到,^-^
MyBatis发现更新和插入返回值一直为"-2147482646"的错误是由defaultExecutorType设置引起的,如果设置为BATCH,更新返回值就会丢失。mybatis官方的讨论列表,这句很关键:“If the BATCH
executor is in use, the update counts are being lost. ”
来自:http://hi.baidu.com/obduvhfyfnbamuq/item/ad5e447afdafc40d5c17891f