This commit is contained in:
wuzhen committed 2025-08-04 13:39:54 +08:00
commit 239fa7b92a
249 files changed
+43765 -999

No files matched your search

@@ -0,0 +1,2 @@
-- 添加批次ID字段
ALTER TABLE xljk_consultation_schedule ADD COLUMN batch_id VARCHAR(50) DEFAULT NULL COMMENT '批次ID,用于标识同一批次创建的预约时段';
@@ -300,3 +300,44 @@ justauth:
client-id: 10**********6
client-secret: 1f7d08**********5b7**********29e
redirect-uri: ${justauth.address}/social-callback?source=gitea
system:
file-cache:
# 是否启用文件缓存
enabled: true
# 最大缓存文件数量
max-cache-size: 100
# 最大缓存大小(字节)- 500MB
max-cache-size-bytes: 524288000
# 缓存过期时间(毫秒)- 30分钟
expire-time-ms: 1800000
# 最大缓存单个文件大小(字节)- 50MB
max-single-file-size: 52428800
# LRU淘汰比例(百分比)
evict-ratio: 20
# 是否启用缓存统计
enable-stats: true
# 缓存清理间隔(毫秒)- 5分钟
cleanup-interval-ms: 300000
# 配置说明:
# 1. enabled: 控制是否启用文件缓存功能
# 2. max-cache-size: 缓存的最大文件数量
# 3. max-cache-size-bytes: 缓存的最大总大小(字节)
# 4. expire-time-ms: 缓存条目的过期时间(毫秒)
# 5. max-single-file-size: 单个文件的最大缓存大小(字节)
# 6. evict-ratio: LRU淘汰时移除的条目比例(百分比)
# 7. enable-stats: 是否启用缓存统计功能
# 8. cleanup-interval-ms: 自动清理过期条目的间隔(毫秒)
# 性能优化建议:
# - 对于内存充足的环境,可以适当增加 max-cache-size-bytes
# - 对于频繁访问的小文件,可以增加 max-cache-size
# - 对于大文件较多的环境,可以调整 max-single-file-size
# - 对于访问频率较低的环境,可以适当减少 expire-time-ms
@@ -0,0 +1,43 @@
# 🚀 文件缓存配置示例
# 将此配置添加到 application.yml 或 application-dev.yml 中
system:
file-cache:
# 是否启用文件缓存
enabled: true
# 最大缓存文件数量
max-cache-size: 100
# 最大缓存大小(字节)- 500MB
max-cache-size-bytes: 524288000
# 缓存过期时间(毫秒)- 30分钟
expire-time-ms: 1800000
# 最大缓存单个文件大小(字节)- 50MB
max-single-file-size: 52428800
# LRU淘汰比例(百分比)
evict-ratio: 20
# 是否启用缓存统计
enable-stats: true
# 缓存清理间隔(毫秒)- 5分钟
cleanup-interval-ms: 300000
# 配置说明:
# 1. enabled: 控制是否启用文件缓存功能
# 2. max-cache-size: 缓存的最大文件数量
# 3. max-cache-size-bytes: 缓存的最大总大小(字节)
# 4. expire-time-ms: 缓存条目的过期时间(毫秒)
# 5. max-single-file-size: 单个文件的最大缓存大小(字节)
# 6. evict-ratio: LRU淘汰时移除的条目比例(百分比)
# 7. enable-stats: 是否启用缓存统计功能
# 8. cleanup-interval-ms: 自动清理过期条目的间隔(毫秒)
# 性能优化建议:
# - 对于内存充足的环境,可以适当增加 max-cache-size-bytes
# - 对于频繁访问的小文件,可以增加 max-cache-size
# - 对于大文件较多的环境,可以调整 max-single-file-size
# - 对于访问频率较低的环境,可以适当减少 expire-time-ms
@@ -52,9 +52,9 @@ spring:
driverClassName: com.mysql.cj.jdbc.Driver
# jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
# rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
url: jdbc:mysql://47.99.164.66:3306/hzdyjs_xg?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
username: root
password: root
password: 'hn02le.34lkdLKD'
# # 从库数据源
# slave:
# lazy: true
@@ -272,3 +272,44 @@ justauth:
client-id: 10**********6
client-secret: 1f7d08**********5b7**********29e
redirect-uri: ${justauth.address}/social-callback?source=gitea
system:
file-cache:
# 是否启用文件缓存
enabled: true
# 最大缓存文件数量
max-cache-size: 100
# 最大缓存大小(字节)- 500MB
max-cache-size-bytes: 524288000
# 缓存过期时间(毫秒)- 30分钟
expire-time-ms: 1800000
# 最大缓存单个文件大小(字节)- 50MB
max-single-file-size: 52428800
# LRU淘汰比例(百分比)
evict-ratio: 20
# 是否启用缓存统计
enable-stats: true
# 缓存清理间隔(毫秒)- 5分钟
cleanup-interval-ms: 300000
# 配置说明:
# 1. enabled: 控制是否启用文件缓存功能
# 2. max-cache-size: 缓存的最大文件数量
# 3. max-cache-size-bytes: 缓存的最大总大小(字节)
# 4. expire-time-ms: 缓存条目的过期时间(毫秒)
# 5. max-single-file-size: 单个文件的最大缓存大小(字节)
# 6. evict-ratio: LRU淘汰时移除的条目比例(百分比)
# 7. enable-stats: 是否启用缓存统计功能
# 8. cleanup-interval-ms: 自动清理过期条目的间隔(毫秒)
# 性能优化建议:
# - 对于内存充足的环境,可以适当增加 max-cache-size-bytes
# - 对于频繁访问的小文件,可以增加 max-cache-size
# - 对于大文件较多的环境,可以调整 max-single-file-size
# - 对于访问频率较低的环境,可以适当减少 expire-time-ms