MySQL与Oracle数据库连接配置

1、MySQL配置:
jdbc:mysql://<主机名>:<端口号(默认3306)>/<数据库名>
url=jdbc:mysql://localhost:3306/testdb?useUnicode=true&characterEncoding=utf-8
driver=com.mysql.jdbc.Driver
user=root
password=123456

2、ORACLE配置:
jdbc:oracle:thin:@<主机名>:<端口号(默认1521)>:<实例名>
driver= oracle.jdbc.OracleDriver
url=jdbc:oracle:thin:@127.0.0.1:1521:orcl
username=test
password=test

—转载请注明出处
原文地址:https://www.cnblogs.com/landiss/p/14322923.html