首页 > 技术文章 > java连接数据库的配置文件

yxs98 2019-07-12 20:35 原文

driver=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/你要连接的数据库?useUnicode=true&characterEncoding=utf-8
root=用户名
password=密码

jdbc.driver = oracle.jdbc.driver.OracleDriver
jdbc.url = jdbc:oracle:thin:@172.25.1.196:1521:mldn (mild为你的sid的值)
jdbc.root = system (你的用户名)
jdbc.password = oracleadmin (密码)

推荐阅读