# 生产环境配置
|
spring:
|
datasource:
|
dynamic:
|
datasource:
|
master:
|
url: jdbc:mysql://localhost:10633/tcm_training_admin?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
|
username: root
|
password: Haizhentong@2025Mysql!
|
haizhentong:
|
type: com.alibaba.druid.pool.DruidDataSource
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
url: jdbc:mysql://localhost:10633/haizhentong?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
|
username: root
|
password: Haizhentong@2025Mysql!
|
redis:
|
host: localhost
|
port: 10644
|
database: 0
|
# 连接超时时间
|
timeout: 5s
|
password: Haizhentong@2025Redis!
|
lettuce:
|
pool:
|
# 连接池中的最小空闲连接
|
min-idle: 0
|
# 连接池中的最大空闲连接
|
max-idle: 8
|
# 连接池的最大数据库连接数
|
max-active: 8
|
# #连接池最大阻塞等待时间(使用负值表示没有限制)
|
max-wait: -1ms
|
app:
|
upload:
|
dir: /data/tcm-training-admin/uploads
|
path-prefix: /uploads
|
app-package-dir: app-package
|
public-base-url: https://haizhentong.com
|
auth:
|
sms:
|
aliyun:
|
access-key-id: "LTAI5t65dd3j1vT5kxAp8KHy"
|
access-key-secret: "XPbEgmD3eSQLfPfFvuGhQchJzqWpF8"
|
sign-name: "海诊通海南健康科技"
|
templates:
|
login: SMS_505135234
|
register: SMS_505065330
|
password-reset: SMS_505095303
|
phone-change: SMS_505135235
|
# 生产环境仅允许短信登录使用默认验证码,其他场景继续走真实验证码。
|
login:
|
enabled: true
|
code: "666666"
|
register:
|
enabled: false
|
code: ""
|
password-reset:
|
enabled: false
|
code: ""
|
phone-change:
|
enabled: false
|
code: ""
|