com.mysql.jdbc.PacketTooBigException: Packet for query is too large (1303 > 1024). You can change this value on the server by setting the max_allowed_packet' variable.````
这是因为数据库设置的字段最大数据超出导致,

使用命令:设置
SET GLOBAL max_allowed_packet=268435456;

查询:
SELECT @@max_allowed_packet;

或者在配置文件(my.cnf)中修改

[mysqld]
...
max_allowed_packet = 256M
...