mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2025-12-16 04:13:03 +00:00
2. 项目结构优化, pom版本统一管理 3. core的beanutils依赖升级为commons-beanutils2版本, 修复之前版本的安全风险. 4. 此版本打包部署需要替换之前所有依赖
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
# 服务配置
|
|
server:
|
|
port: 6400
|
|
contextPath: /
|
|
# 使用静态页面
|
|
enableStaticHtmlService: false
|
|
# 使用数据库
|
|
enableDatabase: true
|
|
staticResourcePath: webroot/
|
|
# 反向代理服务器配置路径(不用加后缀)
|
|
proxyConf: server-proxy
|
|
|
|
# vertx线程配置 事件循环线程配置为0: eventLoopPoolSize将会采用默认配置(CPU核心*2) workerPoolSize将会采用默认20
|
|
vertx:
|
|
eventLoopPoolSize: 0
|
|
workerPoolSize: 0
|
|
|
|
custom:
|
|
# 异步服务线程数
|
|
asyncServiceInstances: 4
|
|
# server路由(controller层)所在包路径
|
|
baseLocations: cn.qaiu.lz
|
|
# 路由处理默认超时时间(毫秒)
|
|
routeTimeOut: 15000
|
|
# 拦截器匹配规则
|
|
ignoresReg:
|
|
- /v2/statisticsInfo
|
|
- .*/test.*$
|
|
|
|
# 参数注入的实体类包路径匹配正则 (防止同名类引发歧义)
|
|
entityPackagesReg:
|
|
- ^cn\.qaiu\.lz\.web\.model\..*
|
|
|
|
|
|
# 数据源配置
|
|
dataSource:
|
|
provider_class: io.vertx.ext.jdbc.spi.impl.HikariCPDataSourceProvider
|
|
jdbcUrl: jdbc:h2:file:./db/nfdData;MODE=MySQL;DATABASE_TO_UPPER=FALSE
|
|
driverClassName: org.h2.Driver
|
|
username: root
|
|
password: '123456'
|