java 多次执行一个sql后 释放不了数据库连接池 怎么办 代码如下!求解决
Stringsql="selectidfrom"+GO_SERVER[i]+"whereautoId>"+SERVER_FULL_VALUE;Sessions=this....
String sql = "select id from " + GO_SERVER[i] + " where autoId>"
+ SERVER_FULL_VALUE;
Session s = this.getSession();
Query q = s.createSQLQuery(sql);//多次执行后 该句报错
if (q.list().size() == 0) {
index = i + 1;
break;
}
s.close(); 展开
+ SERVER_FULL_VALUE;
Session s = this.getSession();
Query q = s.createSQLQuery(sql);//多次执行后 该句报错
if (q.list().size() == 0) {
index = i + 1;
break;
}
s.close(); 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询