application-dev.yml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. server:
  2. port: 9089
  3. spring:
  4. application:
  5. name: flow-app
  6. jackson:
  7. serialization:
  8. FAIL_ON_EMPTY_BEANS: false
  9. datasource:
  10. driver-class-name: com.mysql.cj.jdbc.Driver # mysql驱动包
  11. url: jdbc:mysql://127.0.0.1:3306/flow?characterEncoding=utf8&useUnicode=true&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true
  12. username: root
  13. password: root
  14. # Hikari 连接池配置
  15. hikari:
  16. # 最小空闲连接数量
  17. minimum-idle: 5
  18. # 空闲连接存活最大时间,默认600000(10分钟)
  19. idle-timeout: 600000
  20. # 连接池最大连接数,默认是10
  21. maximum-pool-size: 10
  22. # 此属性控制从池返回的连接的默认自动提交行为,默认值:true
  23. auto-commit: true
  24. # 连接池名称
  25. pool-name: HikariPool-flow
  26. # 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认1800000即30分钟
  27. max-lifetime: 1800000
  28. # 数据库连接超时时间,默认30秒,即30000
  29. connection-timeout: 30000
  30. # 连接测试查询
  31. connection-test-query: SELECT 1
  32. redis:
  33. timeout: 6000ms
  34. database: 0 #Redis数据库索引(默认为0)
  35. host: 127.0.0.1 #Redis服务器地址
  36. port: 6379 #Redis服务器连接端口
  37. lettuce:
  38. shutdown-timeout: 100ms
  39. pool:
  40. max-active: 8
  41. max-wait: -1ms
  42. max-idle: 8
  43. min-idle: 0
  44. mail:
  45. host: smtp.163.com
  46. port: 465
  47. protocol: smtps
  48. default-encoding: UTF-8
  49. username: 15606613391@163.com
  50. password: WVTAADOTQFDLHUHM
  51. test-connection: true
  52. properties:
  53. mail:
  54. smtp:
  55. auth: true
  56. starttls:
  57. enable: true
  58. required: true
  59. flowable:
  60. #关闭定时任务JOB
  61. async-executor-activate: true
  62. # 是否应激活异步历史执行器。
  63. async-history-executor-activate: false
  64. # 是否需要自动部署流程定义。
  65. check-process-definitions: false
  66. # 将databaseSchemaUpdate设置为true。当Flowable发现库与数据库表结构不一致时,会自动将数据库表结构升级至新版本。
  67. database-schema-update: true
  68. # 解决流程图乱码
  69. activity-font-name: 宋体
  70. label-font-name: 宋体
  71. annotation-font-name: 宋体
  72. # 历史级别
  73. history-level: audit
  74. # 启用历史清理
  75. enable-history-cleaning: false
  76. # 历史清理周期
  77. history-cleaning-cycle: 0 0 1 * * ?
  78. # 清理一年前数据
  79. history-cleaning-after: 365d
  80. # 历史清洗批次大小
  81. history-cleaning-batch-size: 100
  82. content:
  83. enabled: false
  84. app:
  85. enabled: false
  86. eventregistry:
  87. enabled: false
  88. dmn:
  89. enabled: false
  90. cmmn:
  91. enabled: false
  92. idm:
  93. enabled: false
  94. # 默认邮箱配置
  95. mail:
  96. server:
  97. host: ${spring.mail.host}
  98. username: ${spring.mail.username}
  99. password: ${spring.mail.password}
  100. default-from: ${spring.mail.username}
  101. mybatis-plus:
  102. mapper-locations: classpath*:/mapper/**/*.xml
  103. type-aliases-package: com.flow.entity
  104. configuration:
  105. default-enum-type-handler: com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler
  106. # 配置sql打印
  107. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  108. # 开启驼峰命名映射
  109. map-underscore-to-camel-case: true
  110. # 开启二级缓存
  111. cache-enabled: true
  112. # 开启一对多;多对多懒加载
  113. lazy-loading-enabled: true
  114. aggressive-lazy-loading: false
  115. global-config:
  116. db-config:
  117. id-type: AUTO
  118. table-prefix:
  119. #字符串查询过滤空字符串
  120. where-strategy: not_empty