修复too many statement(limit is 4)问题前备份
This commit is contained in:
@@ -26,6 +26,7 @@ public class DruidUtils {
|
||||
*/
|
||||
public static AvaticaConnection getConn() throws SQLException {
|
||||
Properties properties = new Properties();
|
||||
properties.setProperty("connectTimeout", String.valueOf(10*60*60));
|
||||
AvaticaConnection connection = (AvaticaConnection) DriverManager.getConnection(DRUID_URL, properties);
|
||||
threadLocal.set(connection);
|
||||
return connection;
|
||||
|
||||
Reference in New Issue
Block a user