opt:代码优化;

This commit is contained in:
2025-06-24 20:18:50 +08:00
parent 296016dc7f
commit 368b846b1f
70 changed files with 2563 additions and 717 deletions

View File

@@ -8,7 +8,7 @@ spring:
db-type: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.cj.jdbc.Driver
# url: jdbc:mysql://${DB_HOST:192.168.8.218}:${DB_PORT:3306}/${DB_NAME:wms}?serverTimxezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&allowPublicKeyRetrieval=true&useSSL=false
url: jdbc:mysql://${DB_HOST:localhost}:${DB_PORT:3306}/${DB_NAME:wms_hs3}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&allowPublicKeyRetrieval=true&useSSL=false
url: jdbc:mysql://${DB_HOST:localhost}:${DB_PORT:3306}/${DB_NAME:wms_hs2}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&allowPublicKeyRetrieval=true&useSSL=false&socketTimeout=28800000
username: ${DB_USER:root}
password: ${DB_PWD:123456}
@@ -19,9 +19,9 @@ spring:
# 最大连接数
max-active: 40
# 是否自动回收超时连接
remove-abandoned: true
remove-abandoned: false
# 超时时间(以秒数为单位)
remove-abandoned-timeout: 20
remove-abandoned-timeout: 300
# 获取连接超时时间
max-wait: 9000
# 连接有效性检测时间