2026-09-03 11:18:51 +08:00
|
|
|
|
# dev 环境:内网 192.168.1.181(沿用 xiaoqu-franchisee pom.xml dev profile)
|
2026-09-03 15:56:35 +09:30
|
|
|
|
# 账号和密码必须由环境变量提供;m0/m1/m2 应使用数据库只读账号
|
2026-09-03 11:18:51 +08:00
|
|
|
|
app:
|
|
|
|
|
|
datasource:
|
|
|
|
|
|
m0: # 权限库 xiaoqu_comples_d(user/agent/authority/propery/agent_manage_district_auth)
|
|
|
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
|
|
|
jdbc-url: jdbc:mysql://192.168.1.181:3306/xiaoqu_comples_d?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
|
2026-09-03 15:56:35 +09:30
|
|
|
|
username: ${M0_DB_USERNAME}
|
|
|
|
|
|
password: ${M0_DB_PASSWORD}
|
2026-09-03 11:18:51 +08:00
|
|
|
|
m1: # 商城库 xiaoqu_mall_d(按需启用)
|
|
|
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
|
|
|
jdbc-url: jdbc:mysql://192.168.1.181:3306/xiaoqu_mall_d?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
|
2026-09-03 15:56:35 +09:30
|
|
|
|
username: ${M1_DB_USERNAME}
|
|
|
|
|
|
password: ${M1_DB_PASSWORD}
|
2026-09-03 11:18:51 +08:00
|
|
|
|
m2: # 业务库 xiaoqu_franchisee_d(warehouse_agent_auth 等)
|
|
|
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
|
|
|
jdbc-url: jdbc:mysql://192.168.1.181:3306/xiaoqu_franchisee_d?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
|
2026-09-03 15:56:35 +09:30
|
|
|
|
username: ${M2_DB_USERNAME}
|
|
|
|
|
|
password: ${M2_DB_PASSWORD}
|
2026-09-03 12:01:09 +08:00
|
|
|
|
svc: # 自有库 xiaoqu_agent_svc_d(token/scope/tool/audit,读写)
|
|
|
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
|
|
|
jdbc-url: jdbc:mysql://192.168.1.181:3306/xiaoqu_agent_svc_d?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
|
2026-09-03 15:56:35 +09:30
|
|
|
|
username: ${SVC_DB_USERNAME}
|
|
|
|
|
|
password: ${SVC_DB_PASSWORD}
|
2026-09-03 11:18:51 +08:00
|
|
|
|
|
|
|
|
|
|
spring:
|
|
|
|
|
|
data:
|
|
|
|
|
|
redis:
|
|
|
|
|
|
host: 192.168.1.181
|
|
|
|
|
|
port: 6379
|
2026-09-03 15:56:35 +09:30
|
|
|
|
password: ${REDIS_PASSWORD}
|
2026-09-03 11:18:51 +08:00
|
|
|
|
database: 5
|
|
|
|
|
|
timeout: 5s
|