1 Star 0 Fork 23

岂能无法无边 / base-config-repo

forked from chenshaojian / base-config-repo 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
test-develop.yml 1.40 KB
一键复制 编辑 原始数据 按行查看 历史
chenshaojian 提交于 2017-11-03 14:52 . 配置仓库
# datasource
spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://120.25.249.190:3306/test?characterEncoding=UTF-8
username: root
password: 12345678
# 初始化大小,最小,最大
initialSize: 5
minIdle: 5
maxActive: 20
# 配置获取连接等待超时的时间
maxWait: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
timeBetweenEvictionRunsMillis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
minEvictableIdleTimeMillis: 300000
validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
# 打开PSCache,并且指定每个连接上PSCache的大小
poolPreparedStatements: true
maxPoolPreparedStatementPerConnectionSize: 20
# 配置监控统计拦截的filters,去掉后监控界面sql将无法统计,'wall'用于防火墙
filters: stat,wall,log4j
# 通过connectProperties属性来打开mergeSql功能;慢SQL记录
connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
# 合并多个DruidDataSource的监控数据
#useGlobalDataSourceStat=true
redis:
host: 192.168.1.23
port: 6379
pool:
max-idle: 8
min-idle: 0
max-active: 8
max-wait: -1
1
https://gitee.com/yafei_bian/base-config-repo.git
git@gitee.com:yafei_bian/base-config-repo.git
yafei_bian
base-config-repo
base-config-repo
master

搜索帮助