Skip to content

Commit

Permalink
add druid pool servelt
Browse files Browse the repository at this point in the history
add druid pool servelt
  • Loading branch information
leelance committed Jun 27, 2016
1 parent c60d1f8 commit 68bd2b8
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion spring-boot-mybatis/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,18 @@ spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
spring.datasource.url=jdbc:mysql://localhost/demo-schema
spring.datasource.username=root
spring.datasource.password=123456
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.driver-class-name=com.mysql.jdbc.Driver

spring.datasource.initialSize=5
spring.datasource.minIdle=5
spring.datasource.maxActive=20
spring.datasource.maxWait=60000
spring.datasource.timeBetweenEvictionRunsMillis=60000
spring.datasource.validationQuery=SELECT 1 FROM DUAL
spring.datasource.testWhileIdle=true
spring.datasource.testOnBorrow=false
spring.datasource.testOnReturn=false
spring.datasource.poolPreparedStatements=true
spring.datasource.maxPoolPreparedStatementPerConnectionSize=20
spring.datasource.filters=stat,wall
spring.datasource.connectionProperties=druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000

0 comments on commit 68bd2b8

Please sign in to comment.