WholeProcessPlatform/backend/src/main/resources/application-dev.yml

101 lines
2.5 KiB
YAML
Raw Normal View History

2026-03-25 10:02:19 +08:00
server:
port: 8093
spring:
#应用名称
application:
name: Project-plateform
datasource:
type: com.alibaba.druid.pool.DruidDataSource
druid:
master:
driverClassName: dm.jdbc.driver.DmDriver
url: "${DB_MASTER_URL:jdbc:dm://localhost:5236/WPPDB}"
username: "${DB_MASTER_USERNAME:WPPDB}"
2026-03-25 10:02:19 +08:00
password: "${DB_MASTER_PASSWORD:}"
slave:
driverClassName: dm.jdbc.driver.DmDriver
url: "${DB_SLAVE_URL:jdbc:dm://localhost:5236/WPPDB}"
username: "${DB_SLAVE_USERNAME:WPPDB}"
2026-03-25 10:02:19 +08:00
password: "${DB_SLAVE_PASSWORD:}"
mvc:
pathmatch:
matching-strategy: ant_path_matcher
servlet:
multipart:
2026-05-13 18:12:49 +08:00
max-file-size: 300MB
max-request-size: 500MB
file-size-threshold: 1KB
location: /tmp/upload
resolve-lazily: true
2026-03-25 10:02:19 +08:00
logging:
file:
name: logs/projectname.log
level:
com.genersoft.iot: debug
com.genersoft.iot.vmp.storager.dao: info
com.genersoft.iot.vmp.gb28181: info
# 在线文档: swagger-ui生产环境建议关闭
swagger-ui:
enabled: true
# 登录相关配置
login:
# 登录缓存
cache-enable: true
# 是否限制单用户登录
single-login: false
# 验证码
login-code:
# 验证码类型配置 查看 LoginProperties 类
code-type: arithmetic
# 启动自动数据库初始化(仅 dev/server
app:
2026-04-25 17:11:59 +08:00
# ZIP导入临时目录配置
zip-import:
2026-04-29 15:04:15 +08:00
temp-dir: ${ZIP_IMPORT_TEMP_DIR:D:\qgc-platform\zip_import_temp}
2026-03-25 10:02:19 +08:00
init:
enabled: false
schema: classpath:db-init/sql/min-schema.sql
# data 文件可选;为避免复杂 dump 解析问题,先不导入
# data:
marker-table: sys_user
marker-version: v1.0.0
# 登录图形验证码有效时间/分钟
expiration: 2
# 验证码高度
width: 111
# 验证码宽度
heigth: 36
# 内容长度
length: 2
# 字体名称,为空则使用默认字体
font-name:
# 字体大小
font-size: 25
# IP 本地解析
ip:
local-parsing: true
file-space: #项目文档空间
2026-04-29 15:04:15 +08:00
files: D:\qgc-platform\files\ #单独上传的文件附件
system: D:\qgc-platform\system\ #单独上传的文件
2026-03-25 10:02:19 +08:00
task:
pool:
# 核心线程池大小
core-pool-size: 10
# 最大线程数
max-pool-size: 30
# 活跃时间
keep-alive-seconds: 60
# 队列容量
queue-capacity: 50