|
|
|
@ -3,16 +3,27 @@ server:
|
|
|
|
|
|
|
|
|
|
spring:
|
|
|
|
|
datasource:
|
|
|
|
|
driver-class-name: com.p6spy.engine.spy.P6SpyDriver
|
|
|
|
|
jdbc-url: jdbc:p6spy:mysql://127.0.0.1:3306/udi_wms_cl?allowMultiQueries=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
|
|
|
|
|
username: root
|
|
|
|
|
driver-class-name: com.alipay.oceanbase.jdbc.Driver
|
|
|
|
|
jdbc-url: jdbc:oceanbase://192.168.110.129:2881/udi_wms?socketTimeout=60000&connectTimeout=10000&autoReconnect=true&failOverReadOnly=false&maxReconnects=3&tcpKeepAlive=true&allowMultiQueries=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
|
|
|
|
|
username: sjld
|
|
|
|
|
password: 123456
|
|
|
|
|
hikari:
|
|
|
|
|
connection-timeout: 60000
|
|
|
|
|
maximum-pool-size: 20
|
|
|
|
|
minimum-idle: 10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 增加连接有效性检查
|
|
|
|
|
connection-test-query: SELECT 1 FROM DUAL
|
|
|
|
|
# 减少验证超时时间
|
|
|
|
|
validation-timeout: 5000
|
|
|
|
|
# 增加最大连接数
|
|
|
|
|
maximum-pool-size: 15
|
|
|
|
|
# 调整最小空闲连接数,保持更多活跃连接
|
|
|
|
|
minimum-idle: 8
|
|
|
|
|
# 延长空闲超时
|
|
|
|
|
idle-timeout: 900000 # 15分钟
|
|
|
|
|
# 延长最大生命周期
|
|
|
|
|
max-lifetime: 3600000 # 1小时
|
|
|
|
|
# OceanBase可能需要更长的连接超时时间
|
|
|
|
|
connection-timeout: 60000 # 60秒
|
|
|
|
|
# 使用自动提交
|
|
|
|
|
auto-commit: true
|
|
|
|
|
redis:
|
|
|
|
|
database: 8
|
|
|
|
|
host: 127.0.0.1
|
|
|
|
|