spring:
|
datasource:
|
dynamic:
|
# 是否开启 SQL日志输出,生产环境建议关闭,有性能损耗
|
p6spy: true
|
hikari:
|
connection-timeout: 30000
|
max-lifetime: 1800000
|
max-pool-size: 15
|
min-idle: 5
|
connection-test-query: select 1
|
pool-name: FebsHikariCP
|
# 配置默认数据源
|
primary: base
|
datasource:
|
# 数据源-1,名称为 base
|
base:
|
username: ct_test
|
password: 123456
|
# 154.91.195.148
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
url: jdbc:mysql://120.27.238.55:3406/db_speed?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2b8
|
# username: db_soccer
|
# password: db_soccer123
|
# driver-class-name: com.mysql.cj.jdbc.Driver
|
# url: jdbc:mysql://154.91.195.148:3306/db_soccer?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2b8
|
|
redis:
|
# Redis数据库索引(默认为 0)
|
database: 8
|
# Redis服务器地址
|
host: 120.27.238.55
|
# Redis服务器连接端口
|
port: 6479
|
# Redis 密码
|
password: d3y6dsdl;f.327
|
lettuce:
|
pool:
|
# 连接池中的最小空闲连接
|
min-idle: 8
|
# 连接池中的最大空闲连接
|
max-idle: 500
|
# 连接池最大连接数(使用负值表示没有限制)
|
max-active: 2000
|
# 连接池最大阻塞等待时间(使用负值表示没有限制)
|
max-wait: 10000
|
# 连接超时时间(毫秒)
|
timeout: 5000
|
rabbitmq:
|
host: 120.27.238.55
|
port: 5672
|
username: ct_rabbit
|
password: 123456
|
publisher-confirm-type: correlated
|
|
system:
|
online-transfer: true
|
chain-listener: false
|
reset-job: false
|
quartz-job: false
|
debug: true
|