JDBC连接数据库的方式:
Oracle篇:
1.jdbc:oracle:thin:@host:port:SID
2.jdbc:oracle:thin:@//host:port/service_name
3.jdbc:oracle:thin:@TNSName
Mysql篇:
jdbc:mysql://host:port/dbname?
JDBC连接数据库的方式:
Oracle篇:
1.jdbc:oracle:thin:@host:port:SID
2.jdbc:oracle:thin:@//host:port/service_name
3.jdbc:oracle:thin:@TNSName
Mysql篇:
jdbc:mysql://host:port/dbname?