MyBatis批量更新返回受影响数

用MyBatis执行批量更新时,默认是返回-1、0、1

如果需要执行批量更新时返回受影响数,必须在连接字符串加上useAffectedRows=true

例如:jdbc:mysql://localhost:3306/searchengine?useAffectedRows=true

原文地址:https://www.cnblogs.com/live41/p/13833076.html