oracle&mysql配置

===========pom.xml===========

<dependency>
<groupId>com.oracle.jdbc</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.0.4</version>
</dependency>

<dependency>
<groupId>com.mysql.jdbc</groupId>
<artifactId>connector</artifactId>
<version>5.1.45</version>
<classifier>bin</classifier>
</dependency>

 

===========db.properties==========

driver=oracle.jdbc.OracleDriver
url=jdbc:oracle:thin:@localhost:1521:orcl
dbuser=scott
dbpwd=tiger

#driver=com.mysql.jdbc.Driver
#url=jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf-8
#dbuser=root
#dbpwd=root

posted on 2018-04-08 20:58  longlinji  阅读(157)  评论(0编辑  收藏  举报