880e0e3c88
- 创建完整的entity实体类体系,包括所有业务实体 - 实现BaseEntity基类,统一管理公共字段 - 创建雪花算法ID生成器和自动填充处理器 - 简化所有mapper接口,只继承BaseMapper - 重构service层,使用LambdaQueryWrapper进行数据库操作 - 创建BasePageRequest分页查询基类 - 完善用户上下文管理和JWT认证 - 新增WebSocket聊天功能和相关控制器 - 更新前端配置和组件,完善用户认证流程 - 同步数据库建表脚本
65 lines
1.4 KiB
YAML
65 lines
1.4 KiB
YAML
# 本地开发环境配置
|
|
# Local Development Environment Configuration
|
|
|
|
server:
|
|
port: 8080
|
|
|
|
spring:
|
|
# 数据库配置 - 本地MySQL
|
|
datasource:
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
url: jdbc:mysql://47.111.10.27:3306/emotion?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
|
|
username: root
|
|
password: EmotionMuseum2025*#
|
|
hikari:
|
|
minimum-idle: 5
|
|
maximum-pool-size: 20
|
|
auto-commit: true
|
|
idle-timeout: 30000
|
|
pool-name: EmotionHikariCP-Local
|
|
max-lifetime: 1800000
|
|
connection-timeout: 30000
|
|
validation-timeout: 3000
|
|
leak-detection-threshold: 60000
|
|
|
|
# Redis配置 - 本地Redis
|
|
redis:
|
|
host: localhost
|
|
port: 6379
|
|
timeout: 3000ms
|
|
database: 0
|
|
lettuce:
|
|
pool:
|
|
max-active: 8
|
|
max-wait: -1ms
|
|
max-idle: 8
|
|
min-idle: 0
|
|
time-between-eviction-runs: 30s
|
|
|
|
# 日志配置 - 本地开发详细日志
|
|
logging:
|
|
level:
|
|
com.emotion: debug
|
|
org.springframework.security: debug
|
|
org.springframework.web: debug
|
|
org.mybatis: debug
|
|
root: info
|
|
file:
|
|
name: logs/emotion-single-local.log
|
|
|
|
# 本地开发特定配置
|
|
emotion:
|
|
# 文件上传路径 - 本地开发
|
|
upload:
|
|
path: ./uploads/emotion-museum
|
|
|
|
# 开发模式配置
|
|
dev:
|
|
mock-enabled: true
|
|
debug-mode: true
|
|
hot-reload: true
|
|
|
|
# 雪花算法配置
|
|
snowflake:
|
|
machine-id: 1
|