The transaction associated with this command is not the connection‘s active
1、出现问题原因接口接收入参为数组类型,遍历数组操作时,事务写在了循环里,待下一次循环时事务非此连接的事务导致出现如题错误,接口传参数组形式如下:[{"id":1,"infos":[{"id":"1","name":"小华","age":"18"}]},{"id":2,"infos":[]}]2、解决办法将循环中需要更新的数据放入到列表中,在循环外用事务执行批量更新,以此使事务处于连接的活动事务中