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

相关文章:

  • 2021-06-02
  • 2022-02-23
  • 2021-07-09
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2021-05-24
  • 2021-06-10
猜你喜欢
  • 2021-11-30
  • 2022-12-23
  • 2021-11-20
  • 2022-02-15
  • 2022-01-19
  • 2022-01-14
  • 2021-12-29
相关资源
相似解决方案