MySQL会限制Server接受的数据包大小.有时候插入.更新或查询时数据包的大小,会受 max_allowed_packet 参数限制,导致操作失败.报错信息为: Caused by: com.mysql.jdbc.PacketTooBigException: Packet for query is too large (XXXX > YYYY). You can change this value on the server by setting the max_allowed_packet…