码迷,mamicode.com
首页 > 其他好文 > 详细

druid 配置模板

时间:2020-06-18 00:59:16      阅读:96      评论:0      收藏:0      [点我收藏+]

标签:cti   min   lse   nts   password   pen   sql   ring   val   

spring.datasource.url=jdbc:mysql://localhost:3306/test?serverTimezone=Asia/Shanghai &useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
spring.datasource.username=root
spring.datasource.password=123456
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
spring.datasource.filters=stat
spring.datasource.maxActive=1000
spring.datasource.initialSize=100
spring.datasource.maxWait=60000
spring.datasource.minIdle=500
spring.datasource.timeBetweenEvictionRunsMillis=60000
spring.datasource.minEvictableIdleTimeMillis=300000
spring.datasource.validationQuery=select ‘x‘
spring.datasource.testWhileIdle=true
spring.datasource.testOnBorrow=false
spring.datasource.testOnReturn=false
spring.datasource.poolPreparedStatements=true
spring.datasource.maxOpenPreparedStatements=20

druid 配置模板

标签:cti   min   lse   nts   password   pen   sql   ring   val   

原文地址:https://www.cnblogs.com/Roni-i/p/13155249.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!