用户登录
用户注册

分享至

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是默认执行类型
软件
前端设计
程序设计
Java相关