TabooLib v4.6-R4
+ SQL update.
This commit is contained in:
@@ -1,32 +1,32 @@
|
||||
# 默认连接池配置
|
||||
DefaultSettings:
|
||||
DriverClassName: 'com.mysql.jdbc.Driver'
|
||||
# 自动提交从池中返回的连接
|
||||
AutoCommit: true
|
||||
# 池中维护的最小空闲连接数
|
||||
MinimumIdle: 1
|
||||
# 连接池大小
|
||||
# 池中最大连接数,包括闲置和使用中的连接
|
||||
MaximumPoolSize: 10
|
||||
# 用来指定验证连接有效性的超时时间(毫秒/默认: 5秒)
|
||||
ValidationTimeout: 3000
|
||||
# 等待连接池分配连接的最大时长(毫秒/默认: 30秒)
|
||||
# 超过这个时长还没可用的连接则发生 SQLException
|
||||
ConnectionTimeout: 10000
|
||||
# 一个连接idle状态的最大时长(毫秒/默认: 10分钟),超时则被释放
|
||||
IdleTimeout: 60000
|
||||
# 一个连接的生命时长(毫秒/默认: 30分钟),超时而且没被使用则被释放
|
||||
MaxLifetime: 60000
|
||||
# 是否自定义配置,为true时下面两个参数才生效
|
||||
DataSourceProperty:
|
||||
cachePrepStmts: true
|
||||
# 连接池大小默认25,官方推荐250-500
|
||||
prepStmtCacheSize: 250
|
||||
# 单条语句最大长度默认256,官方推荐2048
|
||||
prepStmtCacheSqlLimit: 2048
|
||||
# 新版本MySQL支持服务器端准备,开启能够得到显著性能提升
|
||||
useServerPrepStmts: true
|
||||
useLocalSessionState: true
|
||||
useLocalTransactionState: true
|
||||
rewriteBatchedStatements: true
|
||||
cacheResultSetMetadata: true
|
||||
cacheServerConfiguration: true
|
||||
elideSetAutoCommits: true
|
||||
maintainTimeStats: false
|
||||
# 用来指定验证连接有效性的超时时间
|
||||
ValidationTimeout: 5000
|
||||
# 等待来自池的连接的最大毫秒数
|
||||
ConnectionTimeout: 30000
|
||||
# 一个连接idle状态的最大时长,超时则被释放
|
||||
IdleTimeout: 600000
|
||||
# 一个连接的生命时长,超时而且没被使用则被释放
|
||||
MaxLifetime: 1800000
|
||||
# 如果您的驱动程序支持JDBC4,我们强烈建议您不要设置此属性
|
||||
ConnectionTestQuery: SELECT 1
|
||||
# 其他自定义配置
|
||||
DataSourceProperty: {}
|
||||
# cachePrepStmts: true
|
||||
# prepStmtCacheSize: 250
|
||||
# prepStmtCacheSqlLimit: 2048
|
||||
# useServerPrepStmts: true
|
||||
# useLocalSessionState: true
|
||||
# useLocalTransactionState: true
|
||||
# rewriteBatchedStatements: true
|
||||
# cacheResultSetMetadata: true
|
||||
# cacheServerConfiguration: true
|
||||
# elideSetAutoCommits: true
|
||||
# maintainTimeStats: false
|
||||
Reference in New Issue
Block a user