数据库driverClassName跟url

阅读更多

MySQL:

driverClassName: com.mysql.jdbc.Driver

                        url:jdbc:mysql://localhost:3306/test

Oracle:

driverClassName: oracle.jdbc.driver.OracleDriver

                        url:jdbc:oracle:thin:@localhost:1521:orcl

 

 

SQLServerDriver:

driverName :com.microsoft.sqlserver.jdbc.SQLServerDriver;//加载JDBC驱动 
    dbUrl:jdbc:sqlserver://localhost:1433; DatabaseName=sample"; //连接服务器和数据库sam

 

DB2:

driverClassName:   com.ibm.db2.jcc.DB2Driver

                        url:   jdbc:db2://localhost:50000/sample

你可能感兴趣的:(数据库,driverClassName,url)