Files
pxdj/pxdj-java/pxdj-admin/src/main/resources/application-druid.yml
2025-10-24 17:12:18 +08:00

41 lines
1.8 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 数据源配置
spring:
datasource:
dynamic:
strict: false
primary: master
datasource:
master:
# driver-class-name: com.mysql.cj.jdbc.Driver
# url: jdbc:mysql://43.136.31.205:3306/mcdj?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
# username: mcdj
# password: XyTJr4WHpztHMLyR
# driver-class-name: com.mysql.cj.jdbc.Driver
# url: jdbc:mysql://114.132.54.150:3306/pxdj?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
# username: pxdj
# password: LK6R56DsXNFBj3Ds
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://114.132.54.150:3306/pxdj_prod?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&tinyInt1isBit=false
username: pxdj_prod
password: YDAGK6BrPdNwfXMm
# redis 配置
redis:
# 地址
host: 114.132.54.150
# 端口默认为6379
port: 6379
# 数据库索引
database: 1
password: pxdj8888Redis
# 连接超时时间
timeout: 10s
lettuce:
pool:
# 连接池中的最小空闲连接
min-idle: 0
# 连接池中的最大空闲连接
max-idle: 8
# 连接池的最大数据库连接数
max-active: 8
# #连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: -1ms