Connection conn= DriverManager.getConnection(String url,Properties info);
使用这种方法建立数据库连接时,其中参数Properties info,要怎样赋值啊,谁能给个列子!
------解决方案--------------------
Properties props=new Properties();
props.put( "user ", "sss ");
props.put( "password ", "1234 ");
//props.put( "defaultRowPrefectch ", "30 ");
//props.put( "dufaultBatchValue ", "5 ");
Connection con=DriverManager.getConnection( "jdbc:oracle:thin:@hostsString ",props);