39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
server:
|
|
port: 8088
|
|
servlet:
|
|
context-path: /api
|
|
|
|
spring:
|
|
application:
|
|
name: fms-api
|
|
|
|
fms:
|
|
auth:
|
|
jwt-secret: "${FMS_JWT_SECRET:fms-api-development-jwt-secret-change-me}"
|
|
jwt-expiration: 24h
|
|
database:
|
|
config-dir: ./config/dbconfigs
|
|
# 机构配置文件变更检测周期(文件监听的兜底,正常由监听毫秒级触发;设为 0s 关闭轮询)
|
|
refresh-check-interval: 30s
|
|
# 配置变更切换后,旧连接池延迟关闭时间,等待在途请求归还连接
|
|
retired-pool-close-delay: 60s
|
|
pool:
|
|
# 建池时先建 1 条物理连接:配置指向不可达的库时快速失败,保留旧池不切换
|
|
initial-size: 1
|
|
min-idle: 0
|
|
max-active: 10
|
|
max-wait: 5000
|
|
validation-query: SELECT 1
|
|
test-while-idle: true
|
|
test-on-borrow: true
|
|
test-on-return: false
|
|
time-between-eviction-runs: 30s
|
|
min-evictable-idle-time: 30s
|
|
file:
|
|
storage-type: local
|
|
local:
|
|
storage-dir: ./data/files
|
|
url-prefix: /api/file/static
|
|
oss:
|
|
g3oss-url: http://g3oss.g3soft.cn:8082
|