application.yml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. server:
  2. #端口号
  3. port: 8089
  4. #tomcat 日志
  5. tomcat:
  6. accesslog:
  7. buffered: true
  8. directory: D:/logs/thmz
  9. enabled: true
  10. file-date-format: .yyyy-MM-dd
  11. pattern: common
  12. prefix: access_log
  13. rename-on-rotate: false
  14. request-attributes-enabled: false
  15. rotate: true
  16. suffix: .log
  17. #项目名,如果不设定,默认是 /
  18. servlet:
  19. context-path: "/thmz"
  20. spring:
  21. servlet:
  22. multipart:
  23. #单个文件大小
  24. max-file-size: 20MB
  25. #单次请求总文件大小
  26. max-request-size: 100MB
  27. datasource:
  28. his:
  29. jdbc-url: "jdbc:sqlserver://172.16.32.168:1433;databaseName=thxyhisdb"
  30. #jdbc-url: "jdbc:sqlserver://172.16.32.160:1433;databaseName=thxyhisdb"
  31. username: "sa"
  32. password:
  33. #password: "SAthyy123"
  34. driver-class-name: "com.microsoft.sqlserver.jdbc.SQLServerDriver"
  35. # Hikari connection pool
  36. type: "com.zaxxer.hikari.HikariDataSource"
  37. minimum-idle: 5
  38. maximum-pool-size: 15
  39. auto-commit: true
  40. idle-timeout: 30000
  41. pool-name: DatebookHikariCP
  42. max-lifetime: 1800000
  43. connection-timeout: 30000
  44. connection-test-query: SELECT 1
  45. validation-timeout: 10000
  46. thmz:
  47. #jdbc-url: "jdbc:mariadb://localhost:3306/thyy_mz_system?useUnicode=true&characterEncoding=utf-8"
  48. jdbc-url: "jdbc:mariadb://172.16.32.160:3306/thyy_mz_system?useUnicode=true&characterEncoding=utf-8"
  49. username: "root"
  50. #password: "hrg49086"
  51. password: "thyy@2018"
  52. driver-class-name: "org.mariadb.jdbc.Driver"
  53. type: "com.zaxxer.hikari.HikariDataSource"
  54. minimum-idle: 5
  55. maximum-pool-size: 15
  56. auto-commit: true
  57. idle-timeout: 30000
  58. pool-name: DatebookHikariCP
  59. max-lifetime: 1800000
  60. connection-timeout: 30000
  61. connection-test-query: SELECT 1
  62. validation-timeout: 10000
  63. devtools:
  64. restart:
  65. enabled: true
  66. thymeleaf:
  67. cache: false
  68. #spring cloud 微服务配置
  69. application:
  70. name: thmz-system-server
  71. cloud:
  72. consul:
  73. #测试环境的consul 地址
  74. #host: 127.0.0.1
  75. #生产环境的consul 地址
  76. host: 172.16.32.161
  77. port: 8500
  78. enabled: true
  79. discovery:
  80. enabled: true
  81. serviceName: thmz_system_server
  82. healthCheckPath: /thmz/actuator/health
  83. activemq:
  84. #测试环境的MQ地址
  85. #broker-url: tcp://127.0.0.1:61616
  86. #生产环境的MQ地址
  87. broker-url: tcp://172.16.32.161:61616
  88. # 在考虑结束之前等待的时间
  89. #spring.activemq.close-timeout=15s
  90. # 默认代理URL是否应该在内存中。如果指定了显式代理,则忽略此值。
  91. in-memory: true
  92. # 是否在回滚回滚消息之前停止消息传递。这意味着当启用此命令时,消息顺序不会被保留。
  93. non-blocking-redelivery: false
  94. # 等待消息发送响应的时间。设置为0等待永远。
  95. send-timeout: 0s
  96. #账号
  97. user: system
  98. # 密码
  99. password: manager
  100. #启了连接池, 默认是不开的
  101. pool:
  102. enabled: true
  103. max-connections: 10
  104. #默认情况下activemq提供的是queue模式,若要使用topic模式需要配置下面配置
  105. jms:
  106. pub-sub-domain: true
  107. #MQ 的topic
  108. sendOrderStatusChangeTopic: orderStatusChange
  109. #配置项:开启下划线到驼峰的自动转换. 作用:将数据库字段根据驼峰规则自动注入到对象属性。
  110. mybatis:
  111. configuration:
  112. map-underscore-to-camel-case: true
  113. #打印SQL信息
  114. logging:
  115. level:
  116. cn.hnthyy.thmz.mapper: info
  117. #企业微信消息服务地址测试环境
  118. #serviceUrl: "http://172.16.30.21:8081/adverse.event/sendWxInfo"
  119. #企业微信消息服务地址生产环境
  120. serviceUrl: "http://172.16.32.160:8081/adverse.event/sendWxInfo"
  121. #卡号变更通知开关
  122. sendNoticeToHaiCi: true
  123. #就诊状态通知开关
  124. sendNoticeToPatient: true
  125. #海慈开放服务地址测试环境
  126. #haiciServiceUrl: "https://sapi.med.gzhc365.com/openapi/health"
  127. #海慈开放服务地址生产环境
  128. haiciServiceUrl: "https://api.med.gzhc365.com/openapi/health"
  129. #特殊门诊测试地址
  130. #tsmzServiceUrl: "http://172.16.30.27:8704/shengyb/mt"
  131. #特殊门诊生产地址
  132. tsmzServiceUrl: "http://172.16.32.163:8704/shengyb/mt"