本文主要是介绍oracle、mysql、达梦(DM)、人大金仓(kingbase)的jdbc.properties文件配置,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
文章目录
- oracle数据库连接
- jdbc.properties
- pom
- mysql
- jdbc.properties
- pom
- 达梦(DM)
- jdbc.properties
- pom
- 人大金仓(kingbase)
- jdbc.properties
- pom
oracle数据库连接
jdbc.properties
#db.url = jdbc:oracle:thin:@(DESCRIPTION =(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.187.36)(PORT = 1521)) (ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.187.44)(PORT = 1521)))(CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ddxt4)))#db.username = test
#db.password = test
#db.driver = oracle.jdbc.driver.OracleDriver
#db.url = jdbc:oracle:thin:@127.0.0.1:1521:orcl
#db.dialect = oracle
#db.validationQuery = select 1 from dual
pom
<dependency><groupId>com.oracle</groupId><artifactId>ojdbc14</artifactId><scope>system</scope><systemPath>${project.basedir}/src/lib/ojdbc14-10.2.0.5.0.jar</systemPath></dependency>
mysql
jdbc.properties
#db.username = test
#db.password = test
#db.driver = com.mysql.jdbc.Driver
#db.url = jdbc:mysql://127.0.0.1:3306/wms?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&autoReconnect=true&useSSL=false
#db.dialect = mysql
#db.validationQuery = select 1
pom
<dependency><groupId>mysql</groupId><artifactId>mysql-connector-java</artifactId><version>5.1.49</version></dependency>
达梦(DM)
jdbc.properties
#集群式部署
#db.url = jdbc:dm://AA?AA=(127.0.0.1:5236,127.0.0.1:5236,127.0.0.1:5236)&schema=JWCMS&serverTimezone=UTC&LOGIN_NODE=(1)db.username = test
db.password = test
db.driver = dm.jdbc.driver.DmDriver
db.url = jdbc:dm://127.0.0.1:5236
db.dialect = oracle
db.validationQuery = select 1 from dual
pom
<dependency><groupId>com.dameng</groupId><artifactId>DmJdbcDriver18</artifactId><version>8.1.1.193</version></dependency>
人大金仓(kingbase)
jdbc.properties
#db.username = test
#db.password = test
#db.driver = com.kingbase8.Driver
#db.url = jdbc:kingbase8://127.0.0.1:54321/jwcms
#db.dialect = oracle
#db.validationQuery = select 1 from dual
pom
<dependency><groupId>cn.com.kingbase</groupId><artifactId>kingbase8</artifactId><version>8.6.0</version></dependency>
这篇关于oracle、mysql、达梦(DM)、人大金仓(kingbase)的jdbc.properties文件配置的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!