调整连接池中锁定链接
Class.forName(StatisticConstant.Mysql);
DriverManager.setLoginTimeout(1);
Driver driver = DriverManager.getDriver(dataSourceDaMeng.buildURL());
java.util.Properties info = new java.util.Properties();
info.put("user", dataSourceDaMeng.getUsername());
info.put("password", dataSourceDaMeng.getPassword());
Connection connection = driver.connect(dataSourceDaMeng.buildURL(), info);
return connection;
----淡定从容,宁静致远----