You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
529 B
21 lines
529 B
6 years ago
|
import xyz.wbsite.dbtool.javafx.manger.DBManager;
|
||
|
import java.util.HashMap;
|
||
|
|
||
|
public class TestConnect {
|
||
|
|
||
|
public static void main(String[] args) {
|
||
|
|
||
|
HashMap<String, String> map = new HashMap();
|
||
|
map.put("url","jdbc:oracle:thin:@127.0.0.1:1521:orcl");
|
||
|
map.put("username","JCJ");
|
||
|
map.put("password","JCJ");
|
||
|
map.put("driverClassName","oracle.jdbc.driver.OracleDriver");
|
||
|
boolean b = DBManager.testConnect(map);
|
||
|
|
||
|
DBManager.loadMD(map);
|
||
|
|
||
|
System.out.println(b);
|
||
|
}
|
||
|
|
||
|
}
|