jdbc.properties文件的配置
2016-07-10 22:37
513 查看
1.连接DB2
[html] view
plain copy
jdbc.driverClassName=com.ibm.db2.jcc.DB2Driver
jdbc.url=jdbc:db2://10.25.77.143:50001/efmpx
#jdbc.url=jdbc:db2://10.25.33.150:50001/dsoa
#jdbc.url=jdbc:db2://10.12.200.23:50001/dsoa
#jdbc.url=jdbc:db2://127.0.0.1:50000/LOCAL1
jdbc.username=spesdba
jdbc.password=password
jdbc.maxActive=50
jdbc.validationQuery=SELECT 1 FROM iplat.TED10
2.连接SQL Server
[html] view
plain copy
#jdbc.driver = com.inet.tds.TdsDriver
#jdbc.url = jdbc:inetdae7:localhost:1433?charset=GBK
#jdbc.username = ecan
#jdbc.password = ecan
#jdbc.maxActive= 50
3.连接mysql
[html] view
plain copy
#jdbc.driver = com.mysql.jdbc.Driver
#jdbc.url = jdbc:mysql://localhost/ecan?useUnicode=true&characterEncoding=gbk
#jdbc.username = ecan
#jdbc.password = ecan
#jdbc.maxActive= 50
4.连接HSQL
[html] view
plain copy
#jdbc.driver = org.hsqldb.jdbcDriver
#jdbc.url = jdbc:hsqldb:hsql://localhost
#jdbc.username = ecan
#jdbc.password = ecan
#jdbc.maxActive= 50
5.连接postgresql
[html] view
plain copy
#jdbc.driver = org.postgresql.Driver
#jdbc.url = jdbc:postgresql://localhost/acl?charSet=ISO-8859-1
#jdbc.username = ecan
#jdbc.password = ecan
#jdbc.maxActive= 50
6.连接oracle
#连接设置
driverClassName=oracle.jdbc.driver.OracleDriver
url=jdbc\:oracle\:thin\:@192.168.6.139\:1521\:orcl
username=root
password=123
#<!-- 初始化连接 -->
initialSize=10
#最大连接数量
maxActive=50
#<!-- 最大空闲连接 -->
maxIdle=20
#<!-- 最小空闲连接 -->
minIdle=5
#<!--数据库的类型-->
db.type=oracle
#<!-- 超时等待时间以毫秒为单位 6000毫秒/1000等于60秒 -->
maxWait=60000
#JDBC驱动建立连接时附带的连接属性属性的格式必须为这样:[属性名=property;]
#注意:"user" 与 "password" 两个属性会被明确地传递,因此这里不需要包含他们。
connectionProperties=useUnicode=true;characterEncoding=utf-8
#指定由连接池所创建的连接的自动提交(auto-commit)状态。
defaultAutoCommit=true
#driver default 指定由连接池所创建的连接的只读(read-only)状态。
#如果没有设置该值,则“setReadOnly”方法将不被调用。(某些驱动并不支持只读模式,如:Informix)
defaultReadOnly=
#driver default 指定由连接池所创建的连接的事务级别(TransactionIsolation)。
#可用值为下列之一:(详情可见javadoc。)NONE,READ_UNCOMMITTED, READ_COMMITTED, REPEATABLE_READ, SERIALIZABLE
defaultTransactionIsolation=READ_UNCOMMITTED
[html] view
plain copy
jdbc.driverClassName=com.ibm.db2.jcc.DB2Driver
jdbc.url=jdbc:db2://10.25.77.143:50001/efmpx
#jdbc.url=jdbc:db2://10.25.33.150:50001/dsoa
#jdbc.url=jdbc:db2://10.12.200.23:50001/dsoa
#jdbc.url=jdbc:db2://127.0.0.1:50000/LOCAL1
jdbc.username=spesdba
jdbc.password=password
jdbc.maxActive=50
jdbc.validationQuery=SELECT 1 FROM iplat.TED10
2.连接SQL Server
[html] view
plain copy
#jdbc.driver = com.inet.tds.TdsDriver
#jdbc.url = jdbc:inetdae7:localhost:1433?charset=GBK
#jdbc.username = ecan
#jdbc.password = ecan
#jdbc.maxActive= 50
3.连接mysql
[html] view
plain copy
#jdbc.driver = com.mysql.jdbc.Driver
#jdbc.url = jdbc:mysql://localhost/ecan?useUnicode=true&characterEncoding=gbk
#jdbc.username = ecan
#jdbc.password = ecan
#jdbc.maxActive= 50
4.连接HSQL
[html] view
plain copy
#jdbc.driver = org.hsqldb.jdbcDriver
#jdbc.url = jdbc:hsqldb:hsql://localhost
#jdbc.username = ecan
#jdbc.password = ecan
#jdbc.maxActive= 50
5.连接postgresql
[html] view
plain copy
#jdbc.driver = org.postgresql.Driver
#jdbc.url = jdbc:postgresql://localhost/acl?charSet=ISO-8859-1
#jdbc.username = ecan
#jdbc.password = ecan
#jdbc.maxActive= 50
6.连接oracle
#连接设置
driverClassName=oracle.jdbc.driver.OracleDriver
url=jdbc\:oracle\:thin\:@192.168.6.139\:1521\:orcl
username=root
password=123
#<!-- 初始化连接 -->
initialSize=10
#最大连接数量
maxActive=50
#<!-- 最大空闲连接 -->
maxIdle=20
#<!-- 最小空闲连接 -->
minIdle=5
#<!--数据库的类型-->
db.type=oracle
#<!-- 超时等待时间以毫秒为单位 6000毫秒/1000等于60秒 -->
maxWait=60000
#JDBC驱动建立连接时附带的连接属性属性的格式必须为这样:[属性名=property;]
#注意:"user" 与 "password" 两个属性会被明确地传递,因此这里不需要包含他们。
connectionProperties=useUnicode=true;characterEncoding=utf-8
#指定由连接池所创建的连接的自动提交(auto-commit)状态。
defaultAutoCommit=true
#driver default 指定由连接池所创建的连接的只读(read-only)状态。
#如果没有设置该值,则“setReadOnly”方法将不被调用。(某些驱动并不支持只读模式,如:Informix)
defaultReadOnly=
#driver default 指定由连接池所创建的连接的事务级别(TransactionIsolation)。
#可用值为下列之一:(详情可见javadoc。)NONE,READ_UNCOMMITTED, READ_COMMITTED, REPEATABLE_READ, SERIALIZABLE
defaultTransactionIsolation=READ_UNCOMMITTED
相关文章推荐
- Linux下的tree的简单使用
- 如何解决载入swirl包时出来的non-numeric argument to binary operator错误
- OpenGL::由实例讲解概念
- Linux设备驱动之USB hub驱动
- 对于makefile的初步的理解
- nginx负载均衡和tomcat热部署简单了解
- linux课堂笔记5——vim
- spring boot 图片上传后的图片读取路径在win与linux环境配置的差别
- linux设备驱动之USB主机控制器驱动分析
- PCIe之DMA (三)
- linux下tar、zip等压缩、解压命令
- Linux程序运行时找不到动态链接库的原因
- date -s 修改时间
- Linux下开机启动脚本 etc rcS 环境变量 pid判断
- GIT 存储格式与运用
- shell编写简单的CGI脚本
- 补充网站的盈利
- Linux下生成ubi文件
- Optional类
- Linux学习笔记之命令总结