标签:
oracle
//驱动
public static final String DRIVER = "oracle.jdbc.driver.OracleDriver";
//URL
public static final String URL = "jdbc:oracle:thin:@localhost:1521:orcl";
//用户名
public static final String USERNAME = "bl_jsp";
//密码
public static final String PASS = "123";
mysql
public final static String DRIVER = "com.mysql.jdbc.Driver";
public final static String URL = "jdbc:mysql://localhost:3306/company";
public final static String DBNAME = "root";
public final static String DBPASS = "1234";
sql
public final static String DRIVER = "com.microsoft.jdbc.sqlserver.SQLServerDriver"; // 数据库驱动
public final static String URL = "jdbc:microsoft:sqlserver://localhost:1433;DataBaseName=company"; // url
public final static String DBNAME = "sa"; // 数据库用户名
public final static String DBPASS = "120010";
标签:
原文地址:http://www.cnblogs.com/quitewind/p/5539488.html