报错如下:
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed.
解决方法:
在mysql的url中加入autoReconnect=true,这样就可以解决。
报错如下:
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed.
解决方法:
在mysql的url中加入autoReconnect=true,这样就可以解决。