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.
16 lines
560 B
16 lines
560 B
2 years ago
|
public static Connection getConnection() throws Exception {
|
||
|
String driverClass = "com.xugu.cloudjdbc.Driver";//driver
|
||
|
String jdbcUrl = "jdbc:xugu://10.178.90.72:5138/BEYC_STDB";//JDBC链接
|
||
|
String user ="USR_SOD";//用户名
|
||
|
String password = "Pnmicxg2019";//密码
|
||
|
Driver driver = (Driver) Class.forName(driverClass).newInstance();
|
||
|
Properties info = new Properties();
|
||
|
info.put("user", user);
|
||
|
info.put("password", password);
|
||
|
Connection connection = driver.connect(jdbcUrl, info);
|
||
|
return connection;
|
||
|
}
|
||
|
|
||
|
10.178.90.39
|
||
|
dpc
|
||
|
NXdpc_dpc@%*8310
|