MySql 的jdbc 配置选项:http://dev.mysql.com/doc/connector-j/en/connector-j-reference-configuration-properties.html
在High Availability and Clustering. 这一部分提到,
autoReconnect
Should the driver try to re-establish stale and/or dead connections? If enabled
the driver will throw an exception for a queries issued on a stale or dead
connection, which belong to the current transaction, but will attempt reconnect
before the next query issued on the connection in a new transaction. The use of
this feature is not recommended, because it has side effects related to session
state and data consi