|
@@ -0,0 +1,26 @@
|
|
|
+logging:
|
|
|
+ config: classpath:configs/log4j/log4j2-spring-test.xml
|
|
|
+spring:
|
|
|
+ datasource:
|
|
|
+ type: com.zaxxer.hikari.HikariDataSource
|
|
|
+ url: jdbc:mysql://rm-2ze71npbkyc536o1a.mysql.rds.aliyuncs.com:3306/up-mpb?characterEncoding=utf-8&autoReconnect=true&allowMultiQueries=true&useSSL=false
|
|
|
+ username: up_mpb
|
|
|
+ password: up%fgks7w3V
|
|
|
+ hikari:
|
|
|
+ minimum-idle: 2
|
|
|
+ maximum-pool-size: 10
|
|
|
+ idle-timeout: 30000
|
|
|
+ max-lifetime: 1800000
|
|
|
+ connection-timeout: 30000
|
|
|
+ connection-test-query: SELECT 1
|
|
|
+ redis:
|
|
|
+ timeout: 6000
|
|
|
+ host: up888888.redis.rds.aliyuncs.com
|
|
|
+ port: 6379
|
|
|
+ password: up@mpb-01-redis
|
|
|
+ lettuce:
|
|
|
+ pool:
|
|
|
+ max-active: 100 #可用连接实例的最大数目,默认值为8; 如果赋值为-1,则表示不限制;如果pool已经分配了maxActive个jedis实例,则此时pool的状态为exhausted(耗尽)。
|
|
|
+ max-idle: 8 #最多有多少个状态为idle(空闲的)的jedis实例,默认值也是8。
|
|
|
+ min-idle: 1 #最少有多少个状态为idle(空闲的)的jedis实例
|
|
|
+ max-wait: 3000 #等待可用连接的最大时间,单位毫秒,默认值为-1,表示永不超时。如果超过等待时间,则直接抛出JedisConnectionException;
|