Skip to content

3. Spring Boot配置

TinyZ edited this page Aug 14, 2020 · 1 revision

application.properties配置

#   是否启用spring-boot-starter自动配置. 默认:true
struct.store.enable=true
#   工作空间
struct.store.workspace=./examples/
#   是否开启StructStoreService服务. 默认:true
struct.store.service.enable=true
#   StructStore是否通过懒加载方式初始化. 默认:true
struct.store.service.lazy-load=false
#   是否启用FileWatchService监控文件变更.  默认:true
struct.store.service.monitor-file-change=true
#   文件变更监控的扫描定时任务初始间隔. 默认:10
struct.store.service.schedule-initial-delay=10
#   文件变更监控的扫描间隔. 默认:5
struct.store.service.schedule-delay=5
#   文件变更监控的扫描间隔时间单位. 默认:秒
struct.store.service.schedule-time-unit=SECONDS

application.yaml配置

struct:
  store:
    enable: true
    workspace:  ./data/
    service:
      lazyLoad: true
      monitorFileChange: true
      scheduleInitialDelay: 10000
      scheduleDelay: 5000
      scheduleTimeUnit: SECONDS

  arrayConverterStringSeparator:  \\|
  arrayConverterStringTrim: true
  structRequiredDefault: false
  ignoreEmptyRow: false
Clone this wiki locally