druid_write_00.properties
1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name=druid_write_01
driverClassName=com.mysql.jdbc.Driver
url = jdbc:mysql://139.196.188.223:3306/hyperion?useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&useSSL=false&autoReconnect=true
username = druid_write
password = zyWrite!
initialSize=5
maxActive=20
minIdle=3
autoReconnect=true
#获取连接时最大等待时间,单位毫秒。配置了maxWait之后,
#缺省启用公平锁,并发效率会有所下降,
#如果需要可以通过配置useUnfairLock属性为true使用非公平锁。
maxWait=60000
removeAbandoned=true
removeAbandonedTimeout=3600
#有两个含义:
#1) Destroy线程会检测连接的间隔时间
#2) testWhileIdle的判断依据,详细看testWhileIdle属性的说明
timeBetweenEvictionRunsMillis=60000
minEvictableIdleTimeMillis=300000
validationQuery=SELECT 1 FROM DUAL
#空闲时测试
#如果validationQuery为null,testOnBorrow、testOnReturn、testWhileIdle都不会其作用。
testWhileIdle = true
testOnBorrow=false
testOnReturn=false
poolPreparedStatements=false
maxPoolPreparedStatementPerConnectionSize=50
#属性类型是字符串,通过别名的方式配置扩展插件,
#常用的插件有:监控统计用的filter:stat 日志用的filter:log4j 防御sql注入的filter:wall
filters=stat
#要启用PSCache,必须配置大于0,当大于0时,
#poolPreparedStatements自动触发修改为true。
maxOpenPreparedStatements = -1
#物理连接初始化的时候执行的sql
#connectionInitSqls=
#根据dbType自动识别 当数据库抛出一些不可恢复的异常时,抛弃连接
#exceptionSorter=