11 2012 档案
摘要:在学习连接池原理的时候,写了个小小的连接池,在使用prepareStatement的时想到,我的连接是保存在连接池中,没有关闭,每次获取的prepareStatement中上次保存的参数是否还在?会不会影响下次的使用?实验的时间到了:1.先看看上一个操作使用的参数是否存在Connection conn=DBConnectionManager.getInstance().getConnection();//从连接池获取连接PreparedStatement ps=conn.prepareStatement("select * from s_user where vusercode=?
阅读全文