refactor: 多租户开发和代码规范调整

This commit is contained in:
Ray.Hao
2025-12-11 21:13:52 +08:00
parent 47cabcbcfc
commit 51d8220a18
67 changed files with 922 additions and 1157 deletions

View File

@@ -11,8 +11,8 @@ spring:
# === MySQL 数据源(默认启用) ===
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://www.youlai.tech:3306/youlai_admin?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true&allowMultiQueries=true
username: youlai
password: 123456
username: root
password: Youlai@2025
# === PostgreSQL 数据源示例(按需启用) ===
# driver-class-name: org.postgresql.Driver
@@ -275,7 +275,7 @@ youlai:
tenant:
# 是否启用多租户功能默认false
# 设置为 true 启用多租户,设置为 false 禁用多租户(零成本切换)
enabled: false
enabled: true
# 租户字段名默认tenant_id
column: tenant_id