spring: datasource: driver-class-name: com.mysql.jdbc.Driver type: com.alibaba.druid.pool.DruidDataSource filters: stat maxActive: 20 initialSize: 1 maxWait: 60000 minIdle: timeBetweenEvictionRunsMillis: 60000 minEvictionRunsMillis: 300000 validationQuery: select ‘x‘ testWhileIdle: true testOnBorrow: false testOnReturn: false poolPreparedStatements: true maxOpenPreparedStatements: 20
原文地址:https://www.cnblogs.com/fuckingPangzi/p/9966916.html
时间: 2024-11-05 21:51:12