2026-04-20 15:59:11 +08:00
|
|
|
|
# 原始位置:/opt/download/oss_files/gangyan-deploy/gangyan/backend/application-local.yml
|
|
|
|
|
|
# 归档时间:2026-04-20
|
|
|
|
|
|
# 用途:yj profile 的本地覆盖(mysql 33306 Docker 映射),启动时通过 -Dspring.config.additional-location 叠加
|
|
|
|
|
|
|
2026-04-02 11:36:05 +08:00
|
|
|
|
# 覆盖 jar 内过期的 application-yj.yml(当前 jar 仍含远程库 123.57.146.97,不配本会长时间卡 Druid)。
|
|
|
|
|
|
# 完整 spring.redis + spring.datasource 与源码 application-yj.yml 对齐(本地 Docker 33306)。
|
|
|
|
|
|
|
|
|
|
|
|
logging:
|
|
|
|
|
|
file:
|
|
|
|
|
|
name: ${user.home}/.gangyan/logs/spring.log
|
|
|
|
|
|
|
|
|
|
|
|
spring:
|
|
|
|
|
|
redis:
|
|
|
|
|
|
open: true
|
|
|
|
|
|
database: 0
|
|
|
|
|
|
host: 127.0.0.1
|
|
|
|
|
|
port: 6379
|
|
|
|
|
|
password: ""
|
|
|
|
|
|
timeout: 6000
|
|
|
|
|
|
lettuce:
|
|
|
|
|
|
pool:
|
|
|
|
|
|
max-active: 1000
|
|
|
|
|
|
max-wait: -1
|
|
|
|
|
|
max-idle: 10
|
|
|
|
|
|
min-idle: 5
|
|
|
|
|
|
datasource:
|
|
|
|
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
|
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
|
|
|
url: jdbc:mysql://127.0.0.1:33306/chat_gpt_yj?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=GMT%2B8
|
|
|
|
|
|
username: root
|
|
|
|
|
|
password: "1234567890"
|
|
|
|
|
|
druid:
|
|
|
|
|
|
initialSize: 5
|
|
|
|
|
|
minIdle: 10
|
|
|
|
|
|
maxActive: 20
|
|
|
|
|
|
maxWait: 60000
|
|
|
|
|
|
timeBetweenEvictionRunsMillis: 60000
|
|
|
|
|
|
minEvictableIdleTimeMillis: 300000
|
|
|
|
|
|
maxEvictableIdleTimeMillis: 900000
|
|
|
|
|
|
validationQuery: SELECT 1 FROM DUAL
|
|
|
|
|
|
testWhileIdle: true
|
|
|
|
|
|
testOnBorrow: true
|
|
|
|
|
|
testOnReturn: false
|
|
|
|
|
|
keepAlive: true
|
|
|
|
|
|
phyTimeoutMillis: 600000
|
|
|
|
|
|
connectTimeout: 60000
|
|
|
|
|
|
poolPreparedStatements: true
|
|
|
|
|
|
filters: stat,wall,slf4j,config
|
|
|
|
|
|
useGlobalDataSourceStat: true
|
|
|
|
|
|
stat:
|
|
|
|
|
|
log-slow-sql: true
|
|
|
|
|
|
merge-sql: true
|
|
|
|
|
|
slow-sql-millis: 10000
|
|
|
|
|
|
|
|
|
|
|
|
chat:
|
|
|
|
|
|
modelName: deepseek-v3
|