|
@@ -2,9 +2,9 @@ spring:
|
|
|
datasource:
|
|
|
type: com.zaxxer.hikari.HikariDataSource # 数据源类型:HikariCP
|
|
|
driver-class-name: com.mysql.jdbc.Driver # mysql驱动
|
|
|
- url: jdbc:mysql://127.0.0.1:3306/4dkankan_takelook?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true
|
|
|
+ url: jdbc:mysql://r-wz9owsphxqwi4ztqlf.redis.rds.aliyuncs.com:3306/4dkankan_takelook?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true
|
|
|
username: root
|
|
|
- password: 4Dage@4Dage#@168
|
|
|
+ password: 3oo19bgh0cae2406&
|
|
|
hikari:
|
|
|
connection-timeout: 30000 # 等待连接池分配连接的最大时长(毫秒),超过这个时长还没可用的连接则发生SQLException, 默认:30秒
|
|
|
minimum-idle: 5 # 最小连接数
|
|
@@ -15,10 +15,10 @@ spring:
|
|
|
max-lifetime: 1800000 # 连接的生命时长(毫秒),超时而且没被使用则被释放(retired),默认:30分钟 1800000ms
|
|
|
connection-test-query: SELECT 1 # 连接测试语句
|
|
|
redis:
|
|
|
- host: 120.24.144.164
|
|
|
+ host: r-wz9owsphxqwi4ztqlf.redis.rds.aliyuncs.com
|
|
|
port: 6379
|
|
|
timeout: 6000ms
|
|
|
- password: bgh0cae240
|
|
|
+ password: 3oo19bgh0cae2406&
|
|
|
jedis:
|
|
|
pool:
|
|
|
max-active: 10 #连接池最大连接数(使用负值表示没有限制)
|