[pre]
Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure
The last packet successfully received from the server was 319 milliseconds ago. The last packet sent successfully to the server was 319 milliseconds ago.
[/pre]
img[//cdn.renren.io/2580b202112091533014292.png] img[//cdn.renren.io/a6df1202112091533105706.png] img[//cdn.renren.io/c866d202112091533204863.png]
在for循环内调用查询方法,必然会报此错误,求作者给个解决方案啊