refactor: 重命名 backend-single 目录为 server
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
# 本地开发环境配置
|
||||
# Local Development Environment Configuration
|
||||
|
||||
server:
|
||||
port: 19089
|
||||
|
||||
spring:
|
||||
# 数据库配置 - 与prod一致
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://101.200.208.45:3306/emotion_museum?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
|
||||
username: root
|
||||
password: EmotionMuseum2025*#
|
||||
hikari:
|
||||
minimum-idle: 10
|
||||
maximum-pool-size: 50
|
||||
auto-commit: true
|
||||
idle-timeout: 120000
|
||||
pool-name: EmotionHikariCP-Local
|
||||
max-lifetime: 300000
|
||||
keepalive-time: 60000
|
||||
connection-timeout: 10000
|
||||
validation-timeout: 5000
|
||||
leak-detection-threshold: 60000
|
||||
|
||||
# Redis配置 - 远程Redis,增加超时和连接池优化
|
||||
redis:
|
||||
host: 101.200.208.45
|
||||
port: 6379
|
||||
timeout: 15000ms
|
||||
database: 0
|
||||
password: EmotionMuseum2025*#
|
||||
lettuce:
|
||||
pool:
|
||||
max-active: 20
|
||||
max-wait: 10000ms
|
||||
max-idle: 10
|
||||
min-idle: 5
|
||||
shutdown-timeout: 100ms
|
||||
client-name: emotion-museum-client
|
||||
|
||||
# 日志配置 - 本地开发详细日志
|
||||
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
|
||||
Reference in New Issue
Block a user