application-dev.yml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. --- # 数据源配置
  2. spring:
  3. datasource:
  4. type: com.zaxxer.hikari.HikariDataSource
  5. hikari:
  6. # 最大连接池数量
  7. maximum-pool-size: 20
  8. # 最小空闲线程数量
  9. minimum-idle: 10
  10. # 配置获取连接等待超时的时间
  11. connectionTimeout: 30000
  12. # 校验超时时间
  13. validationTimeout: 5000
  14. # 空闲连接存活最大时间,默认10分钟
  15. idleTimeout: 600000
  16. # 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认30分钟
  17. maxLifetime: 1800000
  18. # 多久检查一次连接的活性
  19. keepaliveTime: 30000
  20. mybatis-flex:
  21. # sql审计
  22. audit_enable: true
  23. # sql打印
  24. sql_print: true
  25. datasource:
  26. # 数据源-1
  27. ds1:
  28. # jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
  29. # rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
  30. type: ${spring.datasource.type}
  31. # mysql数据库
  32. # driver-class-name: com.mysql.cj.jdbc.Driver
  33. # url: jdbc:mysql://localhost:3306/km?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
  34. # username: root
  35. # password: Root@369
  36. #postgresql数据库
  37. # driver-class-name: org.postgresql.Driver
  38. # url: jdbc:postgresql://localhost:5432/km?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
  39. # username: postgres
  40. # password: P3x0LG8jzyHRX59l
  41. #DM8数据库
  42. driver-class-name: dm.jdbc.driver.DmDriver
  43. url: jdbc:dm://127.0.0.1:5236?schema=als&useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
  44. username: SYSDBA
  45. password: SYSDBA123
  46. # # 数据源-2
  47. # ds2:
  48. # # 指定为HikariDataSource
  49. # type: ${spring.datasource.type}
  50. # # mysql数据库
  51. # driver-class-name: com.mysql.cj.jdbc.Driver
  52. # url: jdbc:mysql://localhost:3306/km?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
  53. # username: root
  54. # password: Root@369
  55. # #postgresql数据库
  56. ## driver-class-name: org.postgresql.Driver
  57. ## url: jdbc:postgresql://localhost:5432/km?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
  58. ## username: postgres
  59. ## password: postgres@369
  60. # redis 单机配置(单机与集群只能开启一个另一个需要注释掉)
  61. spring.data:
  62. redis:
  63. # 地址
  64. host: localhost
  65. # 端口,默认为6379
  66. port: 6379
  67. # 数据库索引
  68. database: 0
  69. # 密码(如没有密码请注释掉)
  70. password: CWwYsGjafmv8Sr7g
  71. # 连接超时时间
  72. timeout: 10s
  73. # 是否开启ssl
  74. ssl.enabled: false
  75. redisson:
  76. # redis key前缀
  77. keyPrefix: als
  78. # 线程池数量
  79. threads: 4
  80. # Netty线程池数量
  81. nettyThreads: 8
  82. # 单节点配置
  83. singleServerConfig:
  84. # 客户端名称
  85. clientName: ${km.name}
  86. # 最小空闲连接数
  87. connectionMinimumIdleSize: 8
  88. # 连接池大小
  89. connectionPoolSize: 32
  90. # 连接空闲超时,单位:毫秒
  91. idleConnectionTimeout: 10000
  92. # 命令等待超时,单位:毫秒
  93. timeout: 3000
  94. # 发布和订阅连接池大小
  95. subscriptionConnectionPoolSize: 50
  96. --- # 监控中心客户端配置
  97. spring.boot.admin.client:
  98. # 增加客户端开关
  99. enabled: false
  100. url: http://localhost:8849/admin
  101. instance:
  102. service-host-type: IP
  103. username: als
  104. password: 123456
  105. --- # powerjob 配置
  106. powerjob:
  107. worker:
  108. # 如何开启调度中心请查看文档教程
  109. enabled: false
  110. # 需要先在 powerjob 登录页执行应用注册后才能使用
  111. app-name: als-worker
  112. # 28080 端口 随着主应用端口飘逸 避免集群冲突
  113. port: 2${server.port}
  114. protocol: http
  115. server-address: 127.0.0.1:7700
  116. store-strategy: disk
  117. allow-lazy-connect-server: false
  118. max-appended-wf-context-length: 4096
  119. max-result-length: 4096
  120. --- # sms 短信 支持 华为 阿里云 腾讯云 等等各式各样的短信服务商
  121. # https://sms4j.com/doc3/ 文档地址 各个厂商可同时使用
  122. sms:
  123. # 标注从yml读取配置
  124. config-type: yaml
  125. is-print: true
  126. blends:
  127. # 自定义的标识,也就是configId这里可以是任意值(最好不要是中文)
  128. tx1:
  129. #厂商标识,标定此配置是哪个厂商,详细请看厂商标识介绍部分
  130. supplier: tencent
  131. #您的accessKey
  132. access-key-id: 您的accessKey
  133. #您的accessKeySecret
  134. access-key-secret: 您的accessKeySecret
  135. #您的短信签名
  136. signature: 您的短信签名
  137. #模板ID 非必须配置,如果使用sendMessage的快速发送需此配置
  138. template-id: xxxxxxxx
  139. #短信自动重试间隔时间 默认五秒
  140. retry-interval: 5
  141. # 短信重试次数,默认0次不重试,如果你需要短信重试则根据自己的需求修改值即可
  142. max-retries: 0
  143. #您的sdkAppId
  144. sdk-app-id: 您的sdkAppId
  145. # 自定义的标识,也就是configId这里可以是任意值(最好不要是中文)
  146. tx2:
  147. #厂商标识,标定此配置是哪个厂商,详细请看厂商标识介绍部分
  148. supplier: tencent
  149. #您的accessKey
  150. access-key-id: 您的accessKey
  151. #您的accessKeySecret
  152. access-key-secret: 您的accessKeySecret
  153. #您的短信签名
  154. signature: 您的短信签名
  155. #模板ID 非必须配置,如果使用sendMessage的快速发送需此配置
  156. template-id: xxxxxxxx
  157. #您的sdkAppId
  158. sdk-app-id: 您的sdkAppId