核心配置说明

inputManager 输入管理器

  • 用于管理输入的,主要配置输入管理器的一些配置,
  1. periodAcquire
  • 基于java内置的调度周期线程池实现的周期性数据读取者。主要配置周期性数据管理器所拥有的线程池大小
  1. corePoolSize:运行周期性输入的核心线程数。必须大于等于 0
  1. quartz - quartz框架的配置
  • 基于 quartz 实现的周期性数据读取者。主要针对对quartz管理器的配置
    1. quartz
    2. org.quartz.scheduler.instanceName: DefaultQuartzScheduler
    3. org.quartz.scheduler.instanceIdAUTO
    4. ...

outputManager 输出管理器配置

  • 用于管理输出的,主要配置输出管理器的一些配置

outputPoll 输出线程池的配置

用于异步、并发写入数据的功能,主要是配置数据写入者的线程池。

  1. corePoolSize: 核心线程数,默认0。范围: 0<=n<=2147483647
  2. maximumPoolSize: 最大线程数,默认2147483647。范围: 0<n<=2147483647
  3. keepAliveTimeMs: 线程存活时间,默认0。范围:n>=0

inputTransport、outputTransport 配置

1、default - 默认的Transport配置

  1. id: default

2、 buffer - 缓冲的的Transport配置

将系统的数据传输器配置为缓冲传输器:

processStorages - 流程存储的配置

配置和说明如下:

  1. ## json 文件流程存储者
  2. - id: json-file
  3. params:
  4. ## 文件存储目录
  5. ## yml 文件流程存储者
  6. - id: yml-file
  7. params:
  8. ## 文件存储目录
  9. storePath: .//data//process//yml
  10. ## 内存流程存储者
  11. - id: memory

主要是系统加载插件的配置。

  1. plugin:
  2. runMode: dev
  3. pluginPath: ./plugins
  4. pluginConfigFilePath:
  5. uploadTempPath: temp
  • runMode:运行项目时的模式。分为开发环境(dev)、生产环境(prod)
  • pluginPath: 插件的路径。开发环境建议直接配置为插件模块的父级目录。例如: plugins。如果启动主程序时, 插件为加载, 请检查该配置是否正确。
  • pluginConfigFilePath: 在生产环境下, 插件的配置文件路径。在生产环境下, 请将所有插件使用到的配置文件统一放到该路径下管理。如果启动主程序时, 报插件的配置文件加载错误, 有可能是该该配置不合适导致的。
  • backupPluginPath:备份插件包的目录
  • uploadTempPath:上传的插件所存储的临时目录

前端登录时的验证码配置。详细可参考captcha

  1. ## 是否启用
  2. enable: true
  3. ## 验证码cookie的key
  4. cookieKey: captcha
  5. ## 过期时间。单位秒.默认300秒(3分钟)过期
  6. expire: 300
  7. ## 验证码配置。详见: https://www.cnblogs.com/louis80/p/5230507.html
  8. config:
  9. kaptcha.image.width: 125
  10. kaptcha.image.height: 45
  11. kaptcha.textproducer.font.color: 11,10,11
  12. kaptcha.textproducer.font.size: 40
  13. kaptcha.textproducer.char.length: 4
  14. kaptcha.textproducer.char.space: 6
  15. kaptcha.noise.impl: com.google.code.kaptcha.impl.NoNoise