application.yml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. scis:
  2. tenant:
  3. enable: false
  4. bpm:
  5. file-path: /Users/jiez/workspace/haosen/haosen_srm/media
  6. ctx: ''
  7. target-url: http://127.0.0.1:8778
  8. type: 1
  9. callback-url: http://127.0.0.1:8778/bill/rest/callback
  10. pushmsg-url: http://127.0.0.1:8778/task/pushmsg
  11. server:
  12. port: 9094
  13. spring:
  14. application:
  15. name: bpm-server
  16. main:
  17. allow-bean-definition-overriding: true
  18. servlet:
  19. multipart:
  20. max-file-size: 100MB
  21. max-request-size: 1000MB
  22. #环境 dev|test|prod
  23. # profiles:
  24. # active: test
  25. messages:
  26. encoding: UTF-8
  27. basename: i18n/messages_common
  28. mvc:
  29. static-path-pattern: /static/**
  30. view:
  31. prefix: /view/
  32. suffix: .ftl
  33. freemarker:
  34. suffix: .ftl
  35. template-loader-path: classpath:/view/, classpath:/templates/*
  36. cache: false
  37. activiti:
  38. async-executor-activate: true
  39. check-process-definitions: false
  40. jpaEnabled: false
  41. jackson:
  42. time-zone: GMT+8
  43. date-format: yyyy-MM-dd HH:mm:ss
  44. datasource:
  45. druid:
  46. #MySQL
  47. driver-class-name: com.mysql.jdbc.Driver
  48. url: jdbc:mysql://119.3.5.90:3306/jqh_srm_9000?useUnicode=true&characterEncoding=utf-8&useSSL=true&allowMultiQueries=true
  49. username: root
  50. password: Jingtong@2021
  51. initial-size: 10
  52. max-active: 20
  53. min-idle: 2
  54. max-wait: 6000
  55. pool-prepared-statements: true
  56. max-pool-prepared-statement-per-connection-size: 5
  57. time-between-eviction-runs-millis: 60000
  58. min-evictable-idle-time-millis: 300000
  59. #Oracle需要打开注释
  60. #validation-query: SELECT 1 FROM uc_user
  61. test-while-idle: true
  62. test-on-borrow: false
  63. test-on-return: false
  64. filter:
  65. stat:
  66. log-slow-sql: true
  67. slow-sql-millis: 1000
  68. merge-sql: false
  69. wall:
  70. config:
  71. multi-statement-allow: true
  72. redis:
  73. host: 127.0.0.1
  74. port: 6379
  75. database: 2
  76. timeout: 30s
  77. boot:
  78. admin:
  79. client:
  80. url: http://127.0.0.1:9095
  81. management:
  82. endpoint:
  83. jolokia:
  84. enabled: false
  85. logfile:
  86. external-file: "/Users/jiez/workspace/t-oa-bpm/bpm/logs/public.log"
  87. endpoints:
  88. web:
  89. exposure:
  90. include: '*'
  91. logging:
  92. config: classpath:logback-spring.xml
  93. level:
  94. root: info
  95. com.srm: debug
  96. com.srm.bpm.infra.dao.ToaBillDao.selectTodoSizeByStatus: error
  97. feign:
  98. sentinel:
  99. enabled: true
  100. ribbon:
  101. ReadTimeout: 300000
  102. ConnectTimeout: 300000
  103. logbook:
  104. execution: execution(* com.srm.bpm.facade.*.*Controller.*(..))
  105. mybatis-plus:
  106. mapper-locations: classpath*:/mapper/**/infra/*.xml
  107. #实体扫描,多个package用逗号或者分号分隔
  108. type-aliases-package: com.**.**.infra.entity
  109. type-enums-package: com.**.**.infra.entity.enums
  110. type-handlers-package: com.**.**.infra.entity.typehandler
  111. global-config:
  112. #数据库相关配置
  113. db-config:
  114. #主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID", ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
  115. id-type: ID_WORKER
  116. banner: false
  117. #原生配置
  118. configuration:
  119. map-underscore-to-camel-case: true
  120. cache-enabled: false
  121. call-setters-on-nulls: true
  122. jdbc-type-for-null: 'null'
  123. # 配置type-enums-package只对注解方式的枚举处理能提前加载缓存.
  124. default-enum-type-handler: org.apache.ibatis.type.EnumOrdinalTypeHandler
  125. seata:
  126. enabled: false
  127. tx-service-group: bpm_tx_group
  128. enable-auto-data-source-proxy: false
  129. transport:
  130. type: tcp
  131. server: nio
  132. heartbeat: true
  133. enable-client-batch-send-request: true
  134. thread-factory:
  135. boss-thread-prefix: 'NettyBoss'
  136. worker-thread-prefix: 'NettyServerNIOWorker'
  137. server-executor-thread-prefix: 'NettyServerBizHandler'
  138. share-boss-worker: false
  139. client-selector-thread-prefix: 'NettyClientSelector'
  140. client-selector-thread-size: 1
  141. client-worker-thread-prefix: 'NettyClientWorkerThread'
  142. boss-thread-size: 1
  143. worker-thread-size: default
  144. shutdown:
  145. wait: 3
  146. serialization: seata
  147. compressor: none
  148. service:
  149. default:
  150. grouplist: "127.0.0.1:8091"
  151. enable-degrade: false
  152. disable-global-transaction: false
  153. vgroup-mapping:
  154. bpm_tx_group: 'default'
  155. client:
  156. rm:
  157. async-commit-buffer-limit: 10000
  158. lock:
  159. retry-interval: 10
  160. retry-times: 30
  161. retry-policy-branch-rollback-on-conflict: true
  162. tm:
  163. commit-retry-count: 5
  164. rollback-retry-count: 5
  165. undo:
  166. log-table: 'undo_log'
  167. log-serialization: jackson
  168. data-validation: true
  169. log:
  170. exception-rate: 100