|
@ -1,32 +1,33 @@
|
1
|
|
dataSource=com.alibaba.druid.pool.DruidDataSource
|
2
|
|
#数据库连接地址、名称、密码
|
3
|
|
dataSource.url=jdbc:postgresql://192.168.3.233:5432/console_dev
|
4
|
|
#dataSource.url=jdbc:postgresql://www.ekexiu.com:5432/ekexiu
|
5
|
|
dataSource.username=postgres
|
6
|
|
dataSource.password=postgres
|
7
|
|
#连接池启动时的初始值(初始化连接)
|
8
|
|
dataSource.initialSize::int=1
|
9
|
|
#最小空闲连接值
|
10
|
|
dataSource.minIdle::int=1
|
11
|
|
#连接池的最大值(最大连接数量)
|
12
|
|
dataSource.maxActive::int=1
|
13
|
|
#超时等待时间(maxWait代表当Connection用尽了,多久之后进行回收丢失连接)
|
14
|
|
dataSource.maxWait::long=60000
|
15
|
|
#连接超时任务的时间间隔
|
16
|
|
dataSource.timeBetweenEvictionRunsMillis::long=60000
|
17
|
|
#连接的超时时间
|
18
|
|
dataSource.minEvictableIdleTimeMillis::long=300000
|
19
|
|
#用来验证从连接池取出的连接
|
20
|
|
dataSource.validationQuery=SELECT 1
|
21
|
|
#指明连接是否被空闲连接回收器(如果有)进行检验.如果检测失败则连接将被从池中去除
|
22
|
|
dataSource.testWhileIdle::boolean=true
|
23
|
|
#在从池中取出连接前进行检验,如果检验失败则从池中去除连接并尝试取出另一个
|
24
|
|
dataSource.testOnBorrow::boolean=true
|
25
|
|
#指明是否在归还到池中前进行检验
|
26
|
|
dataSource.testOnReturn::boolean=true
|
27
|
|
#开启池的prepared statement 池功能
|
28
|
|
dataSource.poolPreparedStatements::boolean=true
|
29
|
|
#statement池能够同时分配的打开的statements的最大数量
|
30
|
|
dataSource.maxPoolPreparedStatementPerConnectionSize::int=20
|
31
|
|
#默认的SQL语句自动提交状态(开启或关闭)设置由连接池本身设置(false由连接池定)
|
32
|
|
dataSource.defaultAutoCommit::boolean=false
|
|
1
|
dataSource=com.alibaba.druid.pool.DruidDataSource
|
|
2
|
#数据库连接地址、名称、密码
|
|
3
|
dataSource.url=jdbc:postgresql://192.168.3.233:5432/console_dev
|
|
4
|
#dataSource.url=jdbc:postgresql://localhost:5432/console
|
|
5
|
#dataSource.url=jdbc:postgresql://www.ekexiu.com:5432/ekexiu
|
|
6
|
dataSource.username=postgres
|
|
7
|
dataSource.password=postgres
|
|
8
|
#连接池启动时的初始值(初始化连接)
|
|
9
|
dataSource.initialSize::int=1
|
|
10
|
#最小空闲连接值
|
|
11
|
dataSource.minIdle::int=1
|
|
12
|
#连接池的最大值(最大连接数量)
|
|
13
|
dataSource.maxActive::int=1
|
|
14
|
#超时等待时间(maxWait代表当Connection用尽了,多久之后进行回收丢失连接)
|
|
15
|
dataSource.maxWait::long=60000
|
|
16
|
#连接超时任务的时间间隔
|
|
17
|
dataSource.timeBetweenEvictionRunsMillis::long=60000
|
|
18
|
#连接的超时时间
|
|
19
|
dataSource.minEvictableIdleTimeMillis::long=300000
|
|
20
|
#用来验证从连接池取出的连接
|
|
21
|
dataSource.validationQuery=SELECT 1
|
|
22
|
#指明连接是否被空闲连接回收器(如果有)进行检验.如果检测失败则连接将被从池中去除
|
|
23
|
dataSource.testWhileIdle::boolean=true
|
|
24
|
#在从池中取出连接前进行检验,如果检验失败则从池中去除连接并尝试取出另一个
|
|
25
|
dataSource.testOnBorrow::boolean=true
|
|
26
|
#指明是否在归还到池中前进行检验
|
|
27
|
dataSource.testOnReturn::boolean=true
|
|
28
|
#开启池的prepared statement 池功能
|
|
29
|
dataSource.poolPreparedStatements::boolean=true
|
|
30
|
#statement池能够同时分配的打开的statements的最大数量
|
|
31
|
dataSource.maxPoolPreparedStatementPerConnectionSize::int=20
|
|
32
|
#默认的SQL语句自动提交状态(开启或关闭)设置由连接池本身设置(false由连接池定)
|
|
33
|
dataSource.defaultAutoCommit::boolean=false
|