cdssman-service-dev.yml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. server:
  2. port: 8778
  3. # 驱动配置信息
  4. spring:
  5. datasource:
  6. dynamic:
  7. primary: master
  8. druid:
  9. # 连接池的配置信息
  10. # 初始化大小,最小,最大
  11. initialSize: 5
  12. minIdle: 5
  13. maxActive: 20
  14. # 配置获取连接等待超时的时间
  15. maxWait: 60000
  16. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  17. timeBetweenEvictionRunsMillis: 60000
  18. # 配置一个连接在池中最小生存的时间,单位是毫秒
  19. minEvictableIdleTimeMillis: 300000
  20. validationQuery: SELECT 1 FROM DUAL
  21. testWhileIdle: true
  22. testOnBorrow: false
  23. testOnReturn: false
  24. # 打开PSCache,并且指定每个连接上PSCache的大小
  25. poolPreparedStatements: false
  26. maxPoolPreparedStatementPerConnectionSize: 20
  27. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  28. filters.commons-log.connection-logger-name: wall,log4j
  29. share-prepared-statements: false
  30. filter:
  31. stat:
  32. enabled: true
  33. mergeSql: true
  34. log-slow-sql: true
  35. slow-sql-millis: 2000
  36. #监控配置
  37. web-stat-filter:
  38. enabled: true
  39. url-pattern: /*
  40. exclusions: '*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*'
  41. # StatViewServlet配置,说明请参考Druid Wiki,配置_StatViewServlet配置
  42. stat-view-servlet:
  43. enabled: true
  44. url-pattern: /druid/*
  45. reset-enable: false
  46. login-username: root
  47. login-password: root
  48. # 数据库配置
  49. datasource:
  50. master:
  51. driver-class-name: com.mysql.cj.jdbc.Driver
  52. platform: mysql
  53. url: jdbc:mysql://192.168.2.236:3306/cdss?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true&rewriteBatchedStatements=true
  54. username: root
  55. password: lantone
  56. druid:
  57. initial-size: 5
  58. med:
  59. driver-class-name: com.mysql.cj.jdbc.Driver
  60. platform: mysql
  61. url: jdbc:mysql://192.168.2.236:3306/med_2021?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true&rewriteBatchedStatements=true
  62. username: root
  63. password: lantone
  64. druid:
  65. initial-size: 5
  66. cloud:
  67. stream:
  68. bindings:
  69. outputLog:
  70. destination: myLog
  71. # contentType: text/plain # 实体 json string 在传递的类型装换 查看 http://docs.spring
  72. #mq
  73. rabbitmq:
  74. host: 192.168.2.236
  75. port: 5672
  76. username: lantone
  77. password: lantone
  78. publisher-confirms: true
  79. virtual-host: /
  80. #mybatis
  81. mybatis:
  82. type-aliases-package: com.diagbot.entity
  83. mapper-locations: classpath:mapper/**/*.xml
  84. #mybatis-plus
  85. mybatis-plus:
  86. mapper-locations: classpath:/mapper/*Mapper.xml
  87. #实体扫描,多个package用逗号或者分号分隔
  88. typeAliasesPackage: com.diagbot.entity
  89. global-config:
  90. #刷新mapper 调试神器
  91. db-config:
  92. #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  93. id-type: id_worker
  94. #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
  95. field-strategy: not_empty
  96. #驼峰下划线转换
  97. column-underline: true
  98. #数据库大写下划线转换
  99. #capital-mode: true
  100. #刷新mapper 调试神器
  101. refresh-mapper: true
  102. #逻辑删除配置
  103. logic-delete-value: 0
  104. logic-not-delete-value: 1
  105. #自定义填充策略接口实现
  106. #meta-object-handler: com.baomidou.springboot.xxx
  107. #自定义SQL注入器
  108. #sql-injector: com.baomidou.springboot.xxx
  109. configuration:
  110. map-underscore-to-camel-case: true
  111. cache-enabled: false
  112. #远程调用验证标准词接口时间加长
  113. hystrix.command.CdssCoreClient#getConceptNames(ConceptVO).execution.isolation.thread.timeoutInMilliseconds: 3600000
  114. #远程调用更新数据接口时间加长
  115. hystrix.command.CdssCoreClient#clearStandRuleDrugAll().execution.isolation.thread.timeoutInMilliseconds: 3600000
  116. #远程调用更新规则数据接口时间加长
  117. hystrix.command.CdssCoreClient#clearRuleAll().execution.isolation.thread.timeoutInMilliseconds: 3600000
  118. #远程调用开单合理性接口时间加长
  119. hystrix.command.CdssCoreClient#indication(IndicationPushVO).execution.isolation.thread.timeoutInMilliseconds: 3600000
  120. io.github.lvyahui8.spring:
  121. base-packages: com.diagbot.aggregate
  122. thread-number: 200
  123. imageUrl:
  124. prefix: http://192.168.2.236:82
  125. #CDSS核心地址
  126. cdss-core:
  127. url: http://192.168.2.236:7010
  128. #CDSS服务地址
  129. cdss:
  130. url: http://192.168.2.236:6060