需要在mysql的url上设置一下allowMultiQueries=true
需要在mysql的url上设置一下autoReconnect=true
mysql 设置允许重试,批量更新
原文:https://www.cnblogs.com/cmyxn/p/9555105.html