oracle:

    driverClass:oracle.jdbc.OracleDriver

    url:jdbc:oracle:thin:@127.0.0.1:1521:dbname

mysql:

 driverClass:com.mysql.jdbc.Driver

   url: jdbc:mysql://localhost:3306/test?characterEncoding=utf8&useSSL=true   注意: 高版本的 mysql 需要显示指定 useSSL

DB2

    driverClass:com.ibm.db2.jcc.DB2Driver

    url:jdbc:db2://127.0.0.1:50000/dbname

sybase

    driverClass:com.sybase.jdbc.SybDriver

    url:jdbc:sybase:Tds:localhost:5007/dbname

PostgreSQL

    driverClass:org.postgresql.Driver

    url:jdbc:postgresql://localhost/dbname

Sql Server

    driverClass:com.microsoft.sqlserver.jdbc.SQLServerDriver

    url:jdbc:sqlserver://localhost:1433; DatabaseName=dbname

posted on 2017-03-10 22:21  被遗忘的优雅  阅读(8843)  评论(0编辑  收藏  举报