核心配置说明
inputManager 输入管理器
- 用于管理输入的,主要配置输入管理器的一些配置,
- periodAcquire
- 基于java内置的调度周期线程池实现的周期性数据读取者。主要配置周期性数据管理器所拥有的线程池大小
corePoolSize:运行周期性输入的核心线程数。必须大于等于 0
- quartz - quartz框架的配置
- 基于 quartz 实现的周期性数据读取者。主要针对对quartz管理器的配置
quartz:
org.quartz.scheduler.instanceName: DefaultQuartzScheduler
org.quartz.scheduler.instanceId:AUTO
...
outputManager 输出管理器配置
- 用于管理输出的,主要配置输出管理器的一些配置
outputPoll 输出线程池的配置
用于异步、并发写入数据的功能,主要是配置数据写入者的线程池。
corePoolSize: 核心线程数,默认0。范围: 0<=n<=2147483647
maximumPoolSize: 最大线程数,默认2147483647。范围: 0<n<=2147483647
keepAliveTimeMs: 线程存活时间,默认0。范围:n>=0
inputTransport、outputTransport 配置
1、default - 默认的Transport配置
id: default
2、 buffer - 缓冲的的Transport配置
将系统的数据传输器配置为缓冲传输器:
processStorages - 流程存储的配置
配置和说明如下:
## json 文件流程存储者
- id: json-file
params:
## 文件存储目录
## yml 文件流程存储者
- id: yml-file
params:
## 文件存储目录
storePath: .//data//process//yml
## 内存流程存储者
- id: memory
主要是系统加载插件的配置。
plugin:
runMode: dev
pluginPath: ./plugins
pluginConfigFilePath:
uploadTempPath: temp
- runMode:运行项目时的模式。分为开发环境(dev)、生产环境(prod)
- pluginPath: 插件的路径。开发环境建议直接配置为插件模块的父级目录。例如: plugins。如果启动主程序时, 插件为加载, 请检查该配置是否正确。
- pluginConfigFilePath: 在生产环境下, 插件的配置文件路径。在生产环境下, 请将所有插件使用到的配置文件统一放到该路径下管理。如果启动主程序时, 报插件的配置文件加载错误, 有可能是该该配置不合适导致的。
- backupPluginPath:备份插件包的目录
- uploadTempPath:上传的插件所存储的临时目录
前端登录时的验证码配置。详细可参考captcha
## 是否启用
enable: true
## 验证码cookie的key
cookieKey: captcha
## 过期时间。单位秒.默认300秒(3分钟)过期
expire: 300
## 验证码配置。详见: https://www.cnblogs.com/louis80/p/5230507.html
config:
kaptcha.image.width: 125
kaptcha.image.height: 45
kaptcha.textproducer.font.color: 11,10,11
kaptcha.textproducer.font.size: 40
kaptcha.textproducer.char.length: 4
kaptcha.textproducer.char.space: 6
kaptcha.noise.impl: com.google.code.kaptcha.impl.NoNoise