application-dev.yml 4.5 KB

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