mybatis批量更新报错

allowMultiQueries=true

后来发现是jdbc链接没有加允许批量更新操作的参数引起的,不加会报badsql,mysql版的mybatis批量更新操作如下

 <update id="updateOrderOverdueStatus" parameterType="java.util.List">
     <foreach collection="list" item="item" index="index" open="" close="" separator=";">
          update t_am_bystages_order
          <set>
             overdue_status=#{item.overdueStatus}
          </set>
          where order_id=#{item.orderId}
     </foreach>
   </update>
原文地址:https://www.cnblogs.com/younldeace/p/6274047.html