mybatis返回int类型
- 作者: 毕竟我是朱大少
- 来源: 51数据库
- 2020-10-02
直接接收int那不可能。首先返回的可能多条结果。
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是默认执行类型
推荐阅读