public class ConnectionFactory extends Object
| Constructor and Description |
|---|
ConnectionFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Connection |
createConnection(String driver,
String url,
String username,
String password)
创建数据库连接
|
public static Connection createConnection(String driver, String url, String username, String password)
driver - 驱动类url - 连接username - 用户名password - 密码Copyright © 2021. All rights reserved.