application-dev.yml 5.6 KB

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