难道用完了不用关闭连接吗?要怎么关闭,是增加一个方法吗?
调用close()方法
Connection conn=DriverManager.getConnection(url,username,passwrd);
conn.close();