application-dev.yml 5.5 KB

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