Commit 5eaffee7 authored by 赵啸非's avatar 赵啸非

修改配置文件

parent 63ef3a34
...@@ -64,51 +64,12 @@ spring: ...@@ -64,51 +64,12 @@ spring:
exceptiontranslation: exceptiontranslation:
enabled: false enabled: false
datasource: datasource:
druid:
connect-timeout: 30000
socket-timeout: 60000
# 连接池初始化时创建的连接数
initialSize: 5
# 连接池中最大连接数
maxActive: 50
# 连接池中最小空闲连接数
minIdle: 5
# 连接池中最大空闲连接数
maxIdle: 10
# 获取连接时的最大等待时间(毫秒)
maxWait: 60000
# 间隔多久检测一次空闲连接(毫秒)
timeBetweenEvictionRunsMillis: 60000
# 连接池中连接最小空闲时间(毫秒)
minEvictableIdleTimeMillis: 300000
# 用于检测连接是否有效的SQL语句
validationQuery: SELECT 1
# 是否开启空闲连接的检测
testWhileIdle: true
# 是否开启连接的检测功能,在获取连接时检测连接是否有效
testOnBorrow: false
# 是否开启连接的检测功能,在归还连接时检测连接是否有效
testOnReturn: false
# 是否缓存PreparedStatement对象
poolPreparedStatements: true
# 缓存PreparedStatement对象的最大数量
maxPoolPreparedStatementPerConnectionSize: 20
# 配置监控统计用的filter,允许监控统计
filters: stat
# 配置扩展属性,用于监控统计分析SQL性能等
connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
type: com.alibaba.druid.pool.DruidDataSource type: com.alibaba.druid.pool.DruidDataSource
#driver-class-name: com.p6spy.engine.spy.P6SpyDriver #driver-class-name: com.p6spy.engine.spy.P6SpyDriver
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
url: @profiles.datasource.uri@ url: @profiles.datasource.uri@
username: @profiles.datasource.username@ username: @profiles.datasource.username@
password: @profiles.datasource.password@ password: @profiles.datasource.password@
initialSize: 10
minIdle: 10
maxActive: 40
maxWait: 60000
test-on-borrow: true
test-while-idle: true
mybatis: mybatis:
root-path: com.mortals root-path: com.mortals
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment