application.yml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. server:
  2. port: 8706
  3. tomcat:
  4. uri-encoding: utf-8
  5. threads:
  6. min-spare: 20
  7. max: 800
  8. accept-count: 200
  9. max-connections: 10000
  10. servlet:
  11. encoding:
  12. charset: utf-8
  13. spring:
  14. thymeleaf:
  15. cache: false
  16. datasource:
  17. dynamic:
  18. primary: his
  19. strict: false
  20. datasource:
  21. his:
  22. url: "jdbc:sqlserver://172.16.32.168:1433;databaseName=thxyhisdb"
  23. username: "sa"
  24. password:
  25. driver-class-name: "com.microsoft.sqlserver.jdbc.SQLServerDriver"
  26. lis:
  27. url: "jdbc:sqlserver://172.16.32.178:1433;databaseName=eLimsCore"
  28. username: "sa"
  29. password: "hnthxyyy"
  30. driver-class-name: "com.microsoft.sqlserver.jdbc.SQLServerDriver"
  31. dev:
  32. url: "jdbc:sqlserver://172.16.32.179:1433;databaseName=thxyhisdb"
  33. username: "sa"
  34. password:
  35. driver-class-name: "com.microsoft.sqlserver.jdbc.SQLServerDriver"
  36. druid:
  37. #type: com.alibaba.druid.pool.DruidDataSource
  38. #初始化时建立物理连接的个数。初始化发生在显示调用init方法,或者第一次getConnection时
  39. initial-size: 40
  40. #最大连接池数量
  41. max-active: 100
  42. #最小连接池数量
  43. min-idle: 40
  44. #获取连接时最大等待时间,单位毫秒
  45. max-wait: 60000
  46. #使用非公平锁。
  47. use-unfair-lock: true
  48. #用来检测连接是否有效的sql,要求是一个查询语句。
  49. validation-query: SELECT 1
  50. #建议配置为true,不影响性能,并且保证安全性。申请连接的时候检测,如果空闲时间大于timeBetweenEvictionRunsMillis,执行validationQuery检测连接是否有效。
  51. test-while-idle: true
  52. #申请连接时执行validationQuery检测连接是否有效,
  53. test-on-borrow: true
  54. #归还连接时执行validationQuery检测连接是否有效,
  55. test-on-return: false
  56. #Destroy线程会检测连接的间隔时间,testWhileIdle的判断依据,详细看testWhileIdle属性的说明
  57. time-between-eviction-runs-millis: 60000
  58. #配置一个连接在池中最小生存的时间,单位是毫秒
  59. min-evictable-idle-time-millis: 300000
  60. #监控统计用的filter:stat 日志用的filter:log4j 防御sql注入的filter:wall
  61. filters: stat
  62. #是否缓存preparedStatement,也就是PSCache,在mysql5.5以下的版本中没有PSCache功能,建议关闭掉
  63. pool-prepared-statements: false
  64. #要启用PSCache,必须配置大于0,当大于0时,poolPreparedStatements自动触发修改为true。
  65. max-pool-prepared-statement-per-connection-size: 200
  66. #对于长时间不使用的连接强制关闭
  67. remove-abandoned: true
  68. #数据库链接超过180秒开始关闭空闲连接 秒为单位
  69. remove-abandoned-timeout: 180
  70. #将当前关闭动作记录到日志 此配置项会影响性能,只在排查的时候打开,系统运行时最好关闭。
  71. log-abandoned: true
  72. autoconfigure:
  73. exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure # 去除druid配置
  74. jackson:
  75. time-zone: Asia/Shanghai
  76. date-format: yyyy-MM-dd HH:mm:ss
  77. mvc:
  78. format:
  79. date: yyyy-MM-dd
  80. date-time: yyyy-MM-dd HH:mm:ss
  81. forest:
  82. timeout: 0
  83. read-timeout: 0
  84. log-enabled: true
  85. log-request: true
  86. log-response-status: true
  87. connect-timeout: 1500
  88. variables:
  89. socketCenter: http://demo.hnthyy.cn:8707/socketApi
  90. mybatis-plus:
  91. configuration:
  92. map-underscore-to-camel-case: true
  93. global-config:
  94. enableSqlRunner: true
  95. management:
  96. server:
  97. port: 9091
  98. endpoints:
  99. web:
  100. base-path: /actuator
  101. exposure:
  102. include: '*'
  103. metrics:
  104. export:
  105. simple:
  106. enabled: true
  107. jmx:
  108. enabled: true
  109. prometheus:
  110. enabled: true
  111. distribution:
  112. percentiles-histogram:
  113. http:
  114. server:
  115. requests: false
  116. minimum-expected-value:
  117. http:
  118. server:
  119. requests: 20ms
  120. maximum-expected-value:
  121. http:
  122. server:
  123. requests: 200ms
  124. endpoint:
  125. metrics:
  126. enabled: true
  127. health:
  128. show-details: always
  129. probes:
  130. enabled: true
  131. prometheus:
  132. enabled: true
  133. execute-scheduled: false
  134. is-prod: false
  135. triage-notify-url: http://localhost:8082/triage/roomScreen/pushMsg
  136. si-tj-url: http://jkglcsx.server.zhongmeihealth.com/openInter
  137. si-api-url: http://dms.hun.hsip.gov.cn/isp-api/powercsb/1101
  138. si-access-key: 04eMGRg7beAO6vqwrZiLacV8Uy3jNn7QGDUcBO
  139. si-secret-key: SK3Oip3a2R3NLz2xm58Mpmi69oFu96KrdKNRKglN
  140. #正式环境
  141. si-zy-fee-url: http://172.16.32.166:1000
  142. si-mz-fee-url: http://172.16.32.166:1100/mzFee
  143. #si-injury-fee-url: http://172.16.32.163:2100/siInjury
  144. #si-injury-systm-url: http://172.16.32.163:2000/siInjury
  145. thmz-api-url: http://172.16.32.160:81/thmz/api/v1
  146. #测试环境
  147. #si-zy-fee-url: http://localhost:1000
  148. #si-mz-fee-url: http://localhost:1100/mzFee
  149. si-injury-fee-url: http://localhost:2100/siInjury
  150. si-injury-systm-url: http://localhost:2000/siInjury
  151. #thmz-api-url: http://172.16.30.119:8089/thmz/api/v1
  152. #thmz-api-url: http://demo.hnthyy.cn:8089/thmz/api/v1
  153. appletThmzUrl: http://demo.hnthyy.cn:8089/thmz
  154. #logging:
  155. # level:
  156. # thyyxxk.webserver.dao: debug