我有一个不错的小弹簧引导jpa web应用程序。 它被部署在亚马逊豆茎上,并使用亚马逊rds来保存数据。 然而,经常会有这样一个例外,那里不是那么经常使用的: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 79,870,633 milliseconds ago. The last packet sent successfully to the server was 79,870,634 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server […]