Digital Office Automation System Backend
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

application-dev.yml 7.4KB

hace 1 día
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. --- # 监控中心配置
  2. spring.boot.admin.client:
  3. # 增加客户端开关
  4. enabled: true
  5. url: http://localhost:9090/admin
  6. instance:
  7. service-host-type: IP
  8. username: ruoyi
  9. password: 123456
  10. --- # xxl-job 配置
  11. xxl.job:
  12. # 执行器开关
  13. enabled: false
  14. # 调度中心地址:如调度中心集群部署存在多个地址则用逗号分隔。
  15. admin-addresses: http://localhost:9100/xxl-job-admin
  16. # 执行器通讯TOKEN:非空时启用
  17. access-token: xxl-job
  18. executor:
  19. # 执行器AppName:执行器心跳注册分组依据;为空则关闭自动注册
  20. appname: xxl-job-executor
  21. # 执行器端口号 执行器从9101开始往后写
  22. port: 9101
  23. # 执行器注册:默认IP:PORT
  24. address:
  25. # 执行器IP:默认自动获取IP
  26. ip:
  27. # 执行器运行日志文件存储磁盘路径
  28. logpath: ./logs/xxl-job
  29. # 执行器日志文件保存天数:大于3生效
  30. logretentiondays: 30
  31. --- # 数据源配置
  32. spring:
  33. datasource:
  34. type: com.zaxxer.hikari.HikariDataSource
  35. # 动态数据源文档 https://www.kancloud.cn/tracy5546/dynamic-datasource/content
  36. dynamic:
  37. # 性能分析插件(有性能损耗 不建议生产环境使用)
  38. p6spy: true
  39. # 设置默认的数据源或者数据源组,默认值即为 master
  40. primary: master
  41. # 严格模式 匹配不到数据源则报错
  42. strict: true
  43. datasource:
  44. # 主库数据源
  45. master:
  46. type: ${spring.datasource.type}
  47. driverClassName: com.mysql.cj.jdbc.Driver
  48. # jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
  49. # rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
  50. url: jdbc:mysql://192.168.1.188:3307/ruoyi-activiti6?useUnicode=true&characterEncoding=utf8&nullCatalogMeansCurrent=true&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
  51. username: root
  52. password: zhushiroot
  53. # 从库数据源
  54. slave:
  55. lazy: true
  56. type: ${spring.datasource.type}
  57. driverClassName: com.mysql.cj.jdbc.Driver
  58. url: jdbc:mysql://192.168.1.188:3307/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
  59. username:
  60. password:
  61. # oracle:
  62. # type: ${spring.datasource.type}
  63. # driverClassName: oracle.jdbc.OracleDriver
  64. # url: jdbc:oracle:thin:@//localhost:1521/XE
  65. # username: ROOT
  66. # password: root
  67. # hikari:
  68. # connectionTestQuery: SELECT 1 FROM DUAL
  69. # postgres:
  70. # type: ${spring.datasource.type}
  71. # driverClassName: org.postgresql.Driver
  72. # url: jdbc:postgresql://localhost:5432/postgres?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
  73. # username: root
  74. # password: root
  75. # sqlserver:
  76. # type: ${spring.datasource.type}
  77. # driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
  78. # url: jdbc:sqlserver://localhost:1433;DatabaseName=tempdb;SelectMethod=cursor;encrypt=false;rewriteBatchedStatements=true
  79. # username: SA
  80. # password: root
  81. hikari:
  82. # 最大连接池数量
  83. maxPoolSize: 20
  84. # 最小空闲线程数量
  85. minIdle: 10
  86. # 配置获取连接等待超时的时间
  87. connectionTimeout: 30000
  88. # 校验超时时间
  89. validationTimeout: 5000
  90. # 空闲连接存活最大时间,默认10分钟
  91. idleTimeout: 600000
  92. # 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认30分钟
  93. maxLifetime: 1800000
  94. # 连接测试query(配置检测连接是否有效)
  95. connectionTestQuery: SELECT 1
  96. # 多久检查一次连接的活性
  97. keepaliveTime: 30000
  98. --- #activiti配置
  99. spring:
  100. activiti:
  101. #自动更新数据库结构
  102. # true:适用开发环境,默认值。activiti会对数据库中所有表进行更新操作。如果表不存在,则自动创建
  103. # false:适用生产环境。activiti在启动时,对比数据库表中保存的版本,如果没有表或者版本不匹配,将抛出异常
  104. # create_drop: 在activiti启动时创建表,在关闭时删除表(必须手动关闭引擎,才能删除表)
  105. # drop-create: 在activiti启动时删除原来的旧表,然后在创建新表(不需要手动关闭引擎)
  106. database-schema-update: true
  107. # activiti7与springboot整合后默认不创建历史表,需要手动开启
  108. db-history-used: true
  109. # 记录历史等级 可配置的历史级别有none, activity, audit, full
  110. # none:不保存任何的历史数据,因此,在流程执行过程中,这是最高效的。
  111. # activity:级别高于none,保存流程实例与流程行为,其他数据不保存。
  112. # audit:除activity级别会保存的数据外,还会保存全部的流程任务及其属性。
  113. # full:保存历史数据的最高级别,除了会保存audit级别的数据外,还会保存其他全部流程相关的细节数据,包括一些流程参数等。
  114. history-level: full
  115. # 是否自动检查resources下的processes目录的流程定义文件
  116. check-process-definitions: false
  117. # 关闭不自动添加部署数据 SpringAutoDeployment
  118. deployment-mode: never-fail
  119. # #开启异步true,定时任务
  120. async-executor-activate: false
  121. --- # redis 单机配置(单机与集群只能开启一个另一个需要注释掉)
  122. spring:
  123. redis:
  124. # 地址
  125. host: localhost
  126. # 端口,默认为6379
  127. port: 6379
  128. # 数据库索引
  129. database: 0
  130. # 密码(如没有密码请注释掉)
  131. # password:
  132. # 连接超时时间
  133. timeout: 10s
  134. # 是否开启ssl
  135. ssl: false
  136. redisson:
  137. # redis key前缀
  138. keyPrefix:
  139. # 线程池数量
  140. threads: 4
  141. # Netty线程池数量
  142. nettyThreads: 8
  143. # 单节点配置
  144. singleServerConfig:
  145. # 客户端名称
  146. clientName: ${ruoyi.name}
  147. # 最小空闲连接数
  148. connectionMinimumIdleSize: 8
  149. # 连接池大小
  150. connectionPoolSize: 32
  151. # 连接空闲超时,单位:毫秒
  152. idleConnectionTimeout: 10000
  153. # 命令等待超时,单位:毫秒
  154. timeout: 3000
  155. # 发布和订阅连接池大小
  156. subscriptionConnectionPoolSize: 50
  157. --- # mail 邮件发送
  158. mail:
  159. enabled: false
  160. host: smtp.163.com
  161. port: 465
  162. # 是否需要用户名密码验证
  163. auth: true
  164. # 发送方,遵循RFC-822标准
  165. from: xxx@163.com
  166. # 用户名(注意:如果使用foxmail邮箱,此处user为qq号)
  167. user: xxx@163.com
  168. # 密码(注意,某些邮箱需要为SMTP服务单独设置密码,详情查看相关帮助)
  169. pass: xxxxxxxxxx
  170. # 使用 STARTTLS安全连接,STARTTLS是对纯文本通信协议的扩展。
  171. starttlsEnable: true
  172. # 使用SSL安全连接
  173. sslEnable: true
  174. # SMTP超时时长,单位毫秒,缺省值不超时
  175. timeout: 0
  176. # Socket连接超时值,单位毫秒,缺省值不超时
  177. connectionTimeout: 0
  178. --- # sms 短信
  179. sms:
  180. enabled: false
  181. # 阿里云 dysmsapi.aliyuncs.com
  182. # 腾讯云 sms.tencentcloudapi.com
  183. endpoint: "dysmsapi.aliyuncs.com"
  184. accessKeyId: xxxxxxx
  185. accessKeySecret: xxxxxx
  186. signName: 测试
  187. # 腾讯专用
  188. sdkAppId: