@@ -225,7 +225,7 @@ public static void test4(){
225225
226226 public static void test5 (){
227227 MongoDBFactory factory = new MongoDBFactory ();
228- factory .init ("10.1.75.67 :27017,10.1.75.69 :27017,10.1.75.70 :27017" , "admin" , "oss_system" , "root" , "123456" );
228+ factory .init ("localhost :27017,127.0.0.1 :27017,192.168.0.1 :27017" , "admin" , "oss_system" , "root" , "123456" );
229229 List <String > tables = factory .queryTables ();
230230 MongoDBFactory tfactory = new MongoDBFactory ();
231231 tfactory .init ("127.0.0.1:27017" , "admin" , "cdr" , "root" , "root" );
@@ -248,7 +248,7 @@ public static void test5(){
248248 public static void test6 (){
249249 String table = "t_css_user_sleep_history" ;
250250 JDBCFactory factory = new JDBCFactory ();
251- factory .init ("com.mysql.jdbc.Driver" , "jdbc:mysql:loadbalance://10.1.75.67 :3306,10.1.75.68 :3306,10.1.75.69 :3306/glocalme_css_0305?useUnicode=true&characterEncoding=UTF8" , "root" , "123456" , true , 100 , 10 );
251+ factory .init ("com.mysql.jdbc.Driver" , "jdbc:mysql:loadbalance://localhost :3306,127.0.0.1 :3306,192.168.0.1 :3306/glocalme_css_0305?useUnicode=true&characterEncoding=UTF8" , "root" , "123456" , true , 100 , 10 );
252252 JDBCFactory tfactory = new JDBCFactory ();
253253 tfactory .init ("com.mysql.jdbc.Driver" , "jdbc:mysql://localhost:3306/cdr?useUnicode=true&characterEncoding=UTF8" , "root" , "root" , true , 100 , 10 );
254254 Map <String , String > reflect =tfactory .queryColumns (table );
0 commit comments